]> vaikene.ee Git - evaf/blob - src/libs/Common/CMakeLists.txt
Added global utility functions.
[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 util.cpp
26 )
27
28 # Header files for the meta-object compiler
29 set(MOC_HDRS
30 iapp.h
31 ienv.h
32 ieventqueue.h
33 ilogger.h
34 iregistry.h
35 app.h
36 env.h
37 eventqueue.h
38 logger.h
39 registry.h
40 )
41
42 # Version info resource file for Windows builds
43 if(WIN32)
44 set(SRCS ${SRCS} version.rc)
45 endif(WIN32)
46
47 qt4_wrap_cpp(MOC_SRCS ${MOC_HDRS})
48
49 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
50
51 target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
52
53 install(TARGETS ${TARGET} DESTINATION bin)