]> vaikene.ee Git - evaf/blob - src/libs/Common/CMakeLists.txt
Warning fixes and copyright update.
[evaf] / src / libs / Common / CMakeLists.txt
1 # Name of the target
2 set(TARGET CommonLib)
3
4 # Needed for exporting/importing symbols
5 add_definitions(-DCOMMON_LIBRARY)
6
7 # Include files
8 include_directories(${eVaf_INCLUDE})
9
10 # Required eVaf libraries
11 set(eVaf_LIBRARIES)
12
13 # Source files
14 set(SRCS
15 app.h
16 config.cpp
17 config.h
18 eventqueue.cpp
19 eventqueue.h
20 globals.cpp
21 globals.h
22 iapp.h
23 iconfig.h
24 ieventqueue.h
25 ilogger.h
26 inifile.h
27 iprop.h
28 iregistry.h
29 libcommon.h
30 logger.h
31 prop.cpp
32 prop.h
33 app.cpp
34 event.h
35 event.cpp
36 inifile_p.h
37 inifile.cpp
38 logger.cpp
39 registry.cpp
40 registry.h
41 util.cpp
42 util.h
43 version.h
44 )
45
46 # Header files for the meta-object compiler
47 set(MOC_HDRS
48 iapp.h
49 ieventqueue.h
50 ilogger.h
51 iregistry.h
52 iconfig.h
53 iprop.h
54 app.h
55 eventqueue.h
56 logger.h
57 registry.h
58 config.h
59 prop.h
60 )
61
62 # Version info resource file for Windows builds
63 if(WIN32 AND NOT MINGW)
64 set(SRCS ${SRCS} version.rc)
65 endif(WIN32 AND NOT MINGW)
66
67 qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS})
68
69 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
70
71 qt5_use_modules(${TARGET} Core)
72
73 target_link_libraries(${TARGET} ${eVaf_LIBRARIES})
74
75 install(TARGETS ${TARGET} DESTINATION bin)