]> vaikene.ee Git - evaf/blob - src/apps/FileFinder/Engine/CMakeLists.txt
Warning fixes and copyright update.
[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 engine.h
21 ifilefinder.h
22 version.h
23 )
24
25 # Header files for the meta-object compiler
26 set(MOC_HDRS
27 ifilefinder.h
28 engine.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 qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS})
37
38 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
39
40 qt5_use_modules(${TARGET} Core)
41
42 target_link_libraries(${TARGET} ${eVaf_LIBRARIES})
43
44 install(TARGETS ${TARGET} DESTINATION bin)