summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
blob: a1172882707decbfe77bda4b60b113712db35a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
INCLUDE_DIRECTORIES(.)

LINK_DIRECTORIES(${BUILD_DIR}/src)

SET(OpenSkyPlanetarium_SRCS
     OpenSkyPlanetarium.hpp
     OpenSkyPlanetarium.cpp
     LaserDev.hpp
     LaserDev.cpp
     Calibrate.hpp
     Calibrate.cpp
     SerialCom.hpp
     SerialCom.cpp
     gui/OSPMainDialog.hpp
     gui/OSPMainDialog.cpp
)

SET(OpenSkyPlanetarium_UIS
     gui/OSPMainDialog.ui
)

SET(OpenSkyPlanetarium_RES
     ../OpenSkyPlanetarium.qrc
)
QT5_ADD_RESOURCES(OpenSkyPlanetarium_RES_CXX ${OpenSkyPlanetarium_RES})

# Wrapping UI
QT5_WRAP_UI(OpenSkyPlanetarium_UIS_H ${OpenSkyPlanetarium_UIS})


# Library Properties
ADD_LIBRARY(OpenSkyPlanetarium-static MODULE
${OpenSkyPlanetarium_SRCS} ${OpenSkyPlanetarium_RES_CXX}
${OpenSkyPlanetarium_UIS_H})
QT5_USE_MODULES(OpenSkyPlanetarium-static Core Gui Widgets Multimedia)
SET_TARGET_PROPERTIES(OpenSkyPlanetarium-static PROPERTIES OUTPUT_NAME
"OpenSkyPlanetarium" AUTOMOC TRUE COMPILE_FLAGS "-DQT_OSP")
TARGET_LINK_LIBRARIES(OpenSkyPlanetarium-static ${extLinkerOption})