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