]> vaikene.ee Git - evaf/blob - src/apps/PswGen/Storage/CMakeLists.txt
Merge branch 'master' of ssh://vaikene.net/var/gitpub/evaf
[evaf] / src / apps / PswGen / Storage / CMakeLists.txt
1 # Name of the target
2 set(TARGET PswStorage)
3
4 # Qt modules
5 set(QT_USE_QTSQL TRUE)
6 set(QT_DONT_USE_QTGUI TRUE)
7 include(${QT_USE_FILE})
8
9 # Needed for exporting symbols
10 add_definitions(-DPSWGEN_STORAGE_LIBRARY)
11
12 # Include files
13 include_directories(${eVaf_INCLUDE})
14
15 # Required eVaf libraries
16 set(eVaf_LIBRARIES CommonLib PluginsLib)
17
18 # Source files
19 set(SRCS
20 module.cpp
21 )
22
23 # Header files for the meta-object compiler
24 set(MOC_HDRS
25 module.h
26 )
27
28 # Version info resource file for Windows builds
29 if(WIN32 AND NOT MINGW)
30 set(SRCS ${SRCS} version.rc)
31 endif(WIN32 AND NOT MINGW)
32
33 qt4_wrap_cpp(MOC_SRCS ${MOC_HDRS})
34
35 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
36
37 target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
38
39 install(TARGETS ${TARGET} DESTINATION bin)