]> vaikene.ee Git - evaf/blob - src/libs/Gui/CMakeLists.txt
eea9014f4915cd1f299aa4f2dde423d7ee56d5f1
[evaf] / src / libs / Gui / CMakeLists.txt
1 # Name of the target
2 set(TARGET GuiLib)
3
4 # Needed for exporting/importing symbols
5 add_definitions(-DGUI_LIBRARY)
6
7 # Include files
8 include_directories(${eVaf_INCLUDE})
9
10 # Required eVaf libraries
11 set(eVaf_LIBRARIES)
12
13 # Source files
14 set(SRCS
15 panel.cpp
16 )
17
18 # Header files for the meta-object compiler
19 set(MOC_HDRS
20 panel.h
21 )
22
23 # Version info resource file for Windows builds
24 if(WIN32 AND NOT MINGW)
25 set(SRCS ${SRCS} version.rc)
26 endif(WIN32 AND NOT MINGW)
27
28 qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS})
29
30 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
31
32 qt5_use_modules(${TARGET} Core Widgets)
33
34 target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
35
36 install(TARGETS ${TARGET} DESTINATION bin)