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