]> vaikene.ee Git - evaf/blob - src/apps/PswGen/CLI/CMakeLists.txt
Added command-line interface module to the PswGen application.
[evaf] / src / apps / PswGen / CLI / CMakeLists.txt
1 # Name of the target
2 set(TARGET PswCli)
3
4 # Qt modules
5 set(QT_DONT_USE_QTGUI TRUE)
6 include(${QT_USE_FILE})
7
8 # Include files
9 include_directories(${eVaf_INCLUDE})
10
11 # Required eVaf libraries
12 set(eVaf_LIBRARIES CommonLib PluginsLib)
13
14 # Source files
15 set(SRCS
16 cli.cpp
17 )
18
19 # Header files for the meta-object compiler
20 set(MOC_HDRS
21 cli.h
22 )
23
24 # Version info resource file for Windows builds
25 if(WIN32)
26 set(SRCS ${SRCS} version.rc)
27 endif(WIN32)
28
29 qt4_wrap_cpp(MOC_SRCS ${MOC_HDRS})
30
31 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
32
33 target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
34
35 install(TARGETS ${TARGET} DESTINATION bin)