]> vaikene.ee Git - evaf/blob - src/apps/PswGen/GUI/CMakeLists.txt
89e947384745249b26cf59448576b59b4ed6799b
[evaf] / src / apps / PswGen / GUI / CMakeLists.txt
1 # Name of the target
2 set(TARGET PswGui)
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 # Version info resource file for Windows builds
21 if(WIN32 AND NOT MINGW)
22 set(SRCS ${SRCS} version.rc)
23 endif(WIN32 AND NOT MINGW)
24
25 qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS})
26
27 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
28
29 qt5_use_modules(${TARGET} Core Widgets)
30
31 target_link_libraries(${TARGET} ${eVaf_LIBRARIES})
32
33 install(TARGETS ${TARGET} DESTINATION bin)