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