diff options
Diffstat (limited to 'src/CMakeLists.txt')
-rwxr-xr-x | src/CMakeLists.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100755 index 0000000..a117288 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,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}) + |