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