]> vaikene.ee Git - evaf/blob - src/apps/FileFinder/GUI/CMakeLists.txt
Warning fixes and copyright update.
[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 gui.h
17 version.h
18 )
19
20 # Header files for the meta-object compiler
21 set(MOC_HDRS
22 gui.h
23 )
24
25 # Resources
26 #set(RCCS
27 # gui.qrc
28 #)
29
30 # Version info resource file for Windows builds
31 if(WIN32 AND NOT MINGW)
32 set(SRCS ${SRCS} version.rc)
33 endif(WIN32 AND NOT MINGW)
34
35 qt5_add_resources(RCC_SRCS ${RCCS})
36
37 qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS})
38
39 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS} ${RCC_SRCS})
40
41 qt5_use_modules(${TARGET} Core Widgets)
42
43 target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
44
45 install(TARGETS ${TARGET} DESTINATION bin)