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