rearch
[tlb/tlb-podcasts.git] / tlb / core / CMakeLists.txt
1 qt_policy(SET QTP0001 NEW)
2
3 set(SRC_PREFIX src/)
4 set(SRC_FILES
5 AppManager.cpp Show.cpp Shows.cpp
6 )
7 list(TRANSFORM SRC_FILES PREPEND ${SRC_PREFIX})
8
9 # needed due to separate folders
10 set(HDR_PREFIX include/)
11 set(HDR_FILES
12 AppManager.h Show.h Shows.h
13 )
14 list(TRANSFORM HDR_FILES PREPEND ${HDR_PREFIX})
15
16 # can't link to shared
17 # qt_add_plugin(tlbcore STATIC
18 # qt_add_library(tlbcore STATIC
19 # ${HDR_FILES} ${SRC_FILES}
20 # )
21 qt_add_qml_module(tlbcore
22 URI tlb.core
23 VERSION 1.0
24 RESOURCE_PREFIX /
25 SOURCES ${HDR_FILES} ${SRC_FILES}
26 )
27
28 target_include_directories(tlbcore
29 PUBLIC include
30 )
31 target_compile_definitions(tlbcore
32 PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
33 target_link_libraries(tlbcore
34 PRIVATE Qt6::Quick Qt6::Sensors Qt6::Svg Qt6::Xml)