]> vaikene.ee Git - evaf/blob - src/plugins/LogView/CMakeLists.txt
1d4b839c0483dcdbff12f7f49be62682efa4f509
[evaf] / src / plugins / LogView / CMakeLists.txt
1 # Name of the target
2 set(TARGET LogView)
3
4 # Needed for exporting/importing symbols
5 add_definitions(-DLOGVIEW_LIBRARY)
6
7 # Include files
8 include_directories(${eVaf_INCLUDE})
9
10 # Required eVaf libraries
11 set(eVaf_LIBRARIES CommonLib PluginsLib GuiLib)
12
13 # Source files
14 set(SRCS
15 factory.cpp
16 logview.cpp
17 )
18
19 # Header files for the meta-object compiler
20 set(MOC_HDRS
21 factory.h
22 logview.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 qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS})
31
32 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
33
34 qt5_use_modules(${TARGET} Core Widgets)
35
36 target_link_libraries(${TARGET} ${eVaf_LIBRARIES})
37
38 install(TARGETS ${TARGET} DESTINATION bin)