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