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