diff options
author | SudhakarKuma | 2017-10-25 15:53:45 +0530 |
---|---|---|
committer | SudhakarKuma | 2017-10-25 15:53:45 +0530 |
commit | 09c89f6242ecf2495f86140a3f53ef4678f8563b (patch) | |
tree | 96c9a2836be76442376b166f63304a0b2adef560 /CMakeLists.txt | |
download | Open-Sky-Planetarium-09c89f6242ecf2495f86140a3f53ef4678f8563b.tar.gz Open-Sky-Planetarium-09c89f6242ecf2495f86140a3f53ef4678f8563b.tar.bz2 Open-Sky-Planetarium-09c89f6242ecf2495f86140a3f53ef4678f8563b.zip |
Updated OSP-plugin
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-x | CMakeLists.txt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100755 index 0000000..3f5f1dd --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,35 @@ +# This is the cmake config file for the OpenSkyPlanetarium +CMAKE_MINIMUM_REQUIRED(VERSION 3.5) +SET(OPENSKYPLANETARIUM_VERSION "0.1.0") +FIND_PACKAGE(Qt5Core REQUIRED) +FIND_PACKAGE(Qt5Gui REQUIRED) +FIND_PACKAGE(Qt5OpenGL REQUIRED) + +SET(STELLARIUM_SOURCE_DIR $ENV{STELROOT}) + +INCLUDE_DIRECTORIES( + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_SOURCE_DIR}/src/gui + ${STELLARIUM_SOURCE_DIR}/src + ${STELLARIUM_SOURCE_DIR}/src/core + ${STELLARIUM_SOURCE_DIR}/src/core/modules + ${STELLARIUM_SOURCE_DIR}/src/core/planetsephems + ${STELLARIUM_SOURCE_DIR}/src/core/external + ${STELLARIUM_SOURCE_DIR}/src/core/external/qtcompress + ${STELLARIUM_SOURCE_DIR}/src/core/external/glues_stel/source/ + ${STELLARIUM_SOURCE_DIR}/src/core/external/glues_stel/source/libtess + ${STELLARIUM_SOURCE_DIR}/src/gui + ${STELLARIUM_SOURCE_DIR}/src/scripting + ${INTL_INCLUDE_DIR} + ${CMAKE_BINARY_DIR}/src + ${ZLIB_INCLUDE_DIR} +) + +ADD_SUBDIRECTORY( src ) + +SET(QT_LINK_PARAMETERS Qt5::Core Qt5::Gui Qt5::OpenGL) + +SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/.stellarium) + +install(FILES builds/unix/src/libOpenSkyPlanetarium.so DESTINATION modules/OpenSkyPlanetarium/) |