]> vaikene.ee Git - evaf/blob - src/apps/ScosTime/CMakeLists.txt
e32c9efd4a44967a69bda62e6cde0f580464a780
[evaf] / src / apps / ScosTime / CMakeLists.txt
1 # Name of the target
2 set(TARGET ScosTime)
3
4 # Include files
5 include_directories(${eVaf_INCLUDE})
6
7 # Required eVaf libraries
8 set(eVaf_LIBRARIES CommonLib PluginsLib GuiLib)
9
10 # Source files
11 set(SRCS
12 gui.cpp
13 )
14
15 # Header files for the meta-object compiler
16 set(MOC_HDRS
17 gui.h
18 )
19
20 # Resources
21 #set(RCCS
22 # gui.qrc
23 #)
24
25 # Version info resource file for Windows builds
26 if(WIN32 AND NOT MINGW)
27 set(SRCS ${SRCS} version.rc)
28 endif(WIN32 AND NOT MINGW)
29
30 qt5_add_resources(RCC_SRCS ${RCCS})
31
32 qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS})
33
34 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS} ${RCC_SRCS})
35
36 qt5_use_modules(${TARGET} Core Widgets)
37
38 target_link_libraries(${TARGET} ${eVaf_LIBRARIES})
39
40 install(TARGETS ${TARGET} DESTINATION bin)