-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·35 lines (29 loc) · 1.1 KB
/
CMakeLists.txt
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
# 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/)