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