]> vaikene.ee Git - evaf/blob - src/libs/Common/CMakeLists.txt
Added the iConfig interface and default implementation in the common library.
[evaf] / src / libs / Common / CMakeLists.txt
1 # Name of the target
2 set(TARGET CommonLib)
3
4 # Qt modules
5 set(QT_DONT_USE_QTGUI TRUE)
6 include(${QT_USE_FILE})
7
8 # Needed for exporting/importing symbols
9 add_definitions(-DCOMMON_LIBRARY)
10
11 # Include files
12 include_directories(${eVaf_INCLUDE})
13
14 # Required eVaf libraries
15 set(eVaf_LIBRARIES)
16
17 # Source files
18 set(SRCS
19 app.cpp
20 event.cpp
21 eventqueue.cpp
22 globals.cpp
23 logger.cpp
24 registry.cpp
25 util.cpp
26 inifile.cpp
27 config.cpp
28 )
29
30 # Header files for the meta-object compiler
31 set(MOC_HDRS
32 iapp.h
33 ieventqueue.h
34 ilogger.h
35 iregistry.h
36 iconfig.h
37 app.h
38 eventqueue.h
39 logger.h
40 registry.h
41 config.h
42 )
43
44 # Version info resource file for Windows builds
45 if(WIN32)
46 set(SRCS ${SRCS} version.rc)
47 endif(WIN32)
48
49 qt4_wrap_cpp(MOC_SRCS ${MOC_HDRS})
50
51 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
52
53 target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
54
55 install(TARGETS ${TARGET} DESTINATION bin)