Skip to content

Commit

Permalink
Updated cmake rules
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Jul 7, 2019
1 parent 7e0b823 commit 2931ffe
Show file tree
Hide file tree
Showing 89 changed files with 179 additions and 251 deletions.
20 changes: 15 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ ENDIF()
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
SET(APPLE 1)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
# share data location:
SET(SDATALOC "Resources")
# home data location:
SET(HDATALOC "$ENV{HOME}/Library/Application\ Support/${PROJECT_NAME}")
ELSE()
# share data location:
SET(SDATALOC "share/${PACKAGE}")
# home data location:
SET(HDATALOC "$ENV{HOME}/.${PACKAGE}")
ENDIF()

IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
Expand Down Expand Up @@ -323,7 +332,7 @@ ENDIF(ENABLE_TESTING)
########### User Guide ###############
IF(EXISTS "${CMAKE_SOURCE_DIR}/guide/guide.pdf")
MESSAGE(STATUS "Found Stellarium User Guide")
INSTALL(FILES guide/guide.pdf DESTINATION share/${PACKAGE}/guide)
INSTALL(FILES guide/guide.pdf DESTINATION ${SDATALOC}/guide)
SET(ISS_GUIDE "Name: \"{group}\\{cm:UserGuide}\"; Filename: \"{app}\\guide\\guide.pdf\"")
ELSE()
SET(ISS_GUIDE "; No link to Stellarium User Guide")
Expand Down Expand Up @@ -529,10 +538,9 @@ IF(UNIX AND NOT WIN32)
IF(APPLE)
SET(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}/Stellarium.app/Contents")
ELSE()
ADD_DEFINITIONS(-DINSTALL_DATADIR="${CMAKE_INSTALL_PREFIX}/share/${PACKAGE}")
ADD_DEFINITIONS(-DINSTALL_LOCALEDIR="${CMAKE_INSTALL_PREFIX}/share/locale")
ADD_DEFINITIONS(-DINSTALL_DATADIR="${CMAKE_INSTALL_PREFIX}/${SDATALOC}")
# Used in generating the documentation (doc/stellarium.pod.cmake):
SET(INSTALL_DATADIR "${CMAKE_INSTALL_PREFIX}/share/${PACKAGE}")
SET(INSTALL_DATADIR "${CMAKE_INSTALL_PREFIX}/${SDATALOC}")
ENDIF()
ELSE()
ADD_DEFINITIONS(-DINSTALL_DATADIR=".")
Expand Down Expand Up @@ -561,7 +569,6 @@ IF(NOT STELLARIUM_RELEASE_BUILD)
ENDIF()
ENDIF()


IF(WIN32)
#######################################################
### Generate icon file name ###
Expand Down Expand Up @@ -694,6 +701,9 @@ ENDIF()

########### OS X Bundling ###############
IF(APPLE)
GET_FILENAME_COMPONENT(_qt_bin_dir "${QMAKE_LOCATION}" DIRECTORY)
FIND_PROGRAM(MACDEPLOYQT_COMMAND macdeployqt HINTS "${_qt_bin_dir}")

IF(CMAKE_OSX_DEPLOYMENT_TARGET)
SET(PACKAGE_OSX_TARGET ${CMAKE_OSX_DEPLOYMENT_TARGET})
ELSE()
Expand Down
18 changes: 9 additions & 9 deletions data/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

########### install files ###############
INSTALL(FILES ssystem_major.ini ssystem_minor.ini ssystem_1000comets.ini base_locations.bin.gz DejaVuSans.ttf default_cfg.ini DejaVuSansMono.ttf iso639-1.utf8 iso3166.tab countryCodes.dat constellation_boundaries.dat constellations_spans.dat nomenclature.fab DESTINATION share/${PACKAGE}/data)
INSTALL(DIRECTORY shaders/ DESTINATION share/${PACKAGE}/data/shaders FILES_MATCHING
INSTALL(FILES ssystem_major.ini ssystem_minor.ini ssystem_1000comets.ini base_locations.bin.gz DejaVuSans.ttf default_cfg.ini DejaVuSansMono.ttf iso639-1.utf8 iso3166.tab countryCodes.dat constellation_boundaries.dat constellations_spans.dat nomenclature.fab DESTINATION ${SDATALOC}/data)
INSTALL(DIRECTORY shaders/ DESTINATION ${SDATALOC}/data/shaders FILES_MATCHING
PATTERN "planet*"
)

Expand All @@ -24,7 +24,7 @@ SET_TARGET_PROPERTIES(splash PROPERTIES FOLDER "data")

########### icon target ###############
ADD_CUSTOM_TARGET(icon ALL)
IF(MACOSX)
IF(APPLE)
SET(_iconFile Icon.icns)
IF(NOT STELLARIUM_RELEASE_BUILD)
GET_FILENAME_COMPONENT(_iconSrcFile IconGray.icns ABSOLUTE)
Expand All @@ -48,18 +48,18 @@ ADD_CUSTOM_COMMAND(
SET_TARGET_PROPERTIES(icon PROPERTIES FOLDER "data")

# install splash and icon
IF(MACOSX)
INSTALL(FILES ${_iconDstFile} DESTINATION share RENAME ${_iconFile})
INSTALL(FILES ${_splashDstFile} DESTINATION share/data RENAME ${_splashFile})
IF(APPLE)
INSTALL(FILES ${_iconDstFile} DESTINATION ${SDATALOC} RENAME ${_iconFile})
INSTALL(FILES ${_splashDstFile} DESTINATION ${SDATALOC}/data RENAME ${_splashFile})
INSTALL(FILES Info.plist PkgInfo DESTINATION .)
ELSE()
INSTALL(FILES ${_iconDstFile} DESTINATION share/${PACKAGE}/data RENAME ${_iconFile})
INSTALL(FILES ${_splashDstFile} DESTINATION share/${PACKAGE}/data RENAME ${_splashFile})
INSTALL(FILES ${_iconDstFile} DESTINATION ${SDATALOC}/data RENAME ${_iconFile})
INSTALL(FILES ${_splashDstFile} DESTINATION ${SDATALOC}/data RENAME ${_splashFile})
ENDIF()

# install Scenery3d shaders
IF(USE_PLUGIN_SCENERY3D)
INSTALL(DIRECTORY shaders/ DESTINATION share/${PACKAGE}/data/shaders FILES_MATCHING
INSTALL(DIRECTORY shaders/ DESTINATION ${SDATALOC}/data/shaders FILES_MATCHING
PATTERN "s3d_*.vert"
PATTERN "s3d_*.geom"
PATTERN "s3d_*.frag")
Expand Down
4 changes: 2 additions & 2 deletions landscapes/garching/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/garching )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/garching )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/garching
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/garching
FILES_MATCHING PATTERN "*.png"
PATTERN "description.*.utf8"
PATTERN "CMakeFiles" EXCLUDE )
4 changes: 2 additions & 2 deletions landscapes/geneva/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/geneva )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/geneva )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/geneva
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/geneva
FILES_MATCHING PATTERN "*.txt"
PATTERN "description.*.utf8"
PATTERN "CMake*" EXCLUDE )
4 changes: 2 additions & 2 deletions landscapes/grossmugl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/grossmugl )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/grossmugl )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/grossmugl
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/grossmugl
FILES_MATCHING PATTERN "*.png"
PATTERN "description.*.utf8"
PATTERN "gazetteer.*.utf8"
Expand Down
4 changes: 2 additions & 2 deletions landscapes/guereins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/guereins )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/guereins )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/guereins
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/guereins
FILES_MATCHING PATTERN "*.png"
PATTERN "description.*.utf8"
PATTERN "CMakeFiles" EXCLUDE )
4 changes: 2 additions & 2 deletions landscapes/hurricane/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/hurricane )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/hurricane )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/hurricane
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/hurricane
FILES_MATCHING PATTERN "*.png"
PATTERN "description.*.utf8"
PATTERN "CMakeFiles" EXCLUDE )
4 changes: 2 additions & 2 deletions landscapes/jupiter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/jupiter )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/jupiter )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/jupiter
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/jupiter
FILES_MATCHING PATTERN "*.png"
PATTERN "description.*.utf8"
PATTERN "CMakeFiles" EXCLUDE )
4 changes: 2 additions & 2 deletions landscapes/mars/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/mars )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/mars )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/mars
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/mars
FILES_MATCHING PATTERN "*.png"
PATTERN "description.*.utf8"
PATTERN "CMakeFiles" EXCLUDE )
4 changes: 2 additions & 2 deletions landscapes/moon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/moon )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/moon )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/moon
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/moon
FILES_MATCHING PATTERN "*.png"
PATTERN "description.*.utf8"
PATTERN "CMakeFiles" EXCLUDE )
4 changes: 2 additions & 2 deletions landscapes/neptune/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/neptune )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/neptune )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/neptune
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/neptune
FILES_MATCHING PATTERN "*.png"
PATTERN "description.*.utf8"
PATTERN "CMakeFiles" EXCLUDE )
4 changes: 2 additions & 2 deletions landscapes/ocean/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/ocean )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/ocean )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/ocean
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/ocean
FILES_MATCHING PATTERN "*.png"
PATTERN "description.*.utf8"
PATTERN "CMakeFiles" EXCLUDE )
4 changes: 2 additions & 2 deletions landscapes/saturn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/saturn )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/saturn )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/saturn
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/saturn
FILES_MATCHING PATTERN "*.png"
PATTERN "description.*.utf8"
PATTERN "CMakeFiles" EXCLUDE )
4 changes: 2 additions & 2 deletions landscapes/sun/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/sun )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/sun )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/sun
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/sun
FILES_MATCHING PATTERN "*.png"
PATTERN "description.*.utf8"
PATTERN "CMakeFiles" EXCLUDE )
4 changes: 2 additions & 2 deletions landscapes/trees/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/trees )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/trees )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/trees
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/trees
FILES_MATCHING PATTERN "*.png"
PATTERN "description.*.utf8"
PATTERN "CMakeFiles" EXCLUDE )
4 changes: 2 additions & 2 deletions landscapes/uranus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/uranus )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/uranus )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/uranus
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/uranus
FILES_MATCHING PATTERN "*.png"
PATTERN "description.*.utf8"
PATTERN "CMakeFiles" EXCLUDE )
4 changes: 2 additions & 2 deletions landscapes/zero/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
########### install files ###############

# install landscape.ini
INSTALL (FILES landscape.ini DESTINATION share/${PACKAGE}/landscapes/zero )
INSTALL (FILES landscape.ini DESTINATION ${SDATALOC}/landscapes/zero )

# install textures and descriptions
INSTALL (DIRECTORY ./ DESTINATION share/${PACKAGE}/landscapes/zero
INSTALL (DIRECTORY ./ DESTINATION ${SDATALOC}/landscapes/zero
FILES_MATCHING PATTERN "*.txt"
PATTERN "description.*.utf8"
PATTERN "CMake*" EXCLUDE )
4 changes: 2 additions & 2 deletions models/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
########### install files ###############

# install models
INSTALL(DIRECTORY ./ DESTINATION share/${PACKAGE}/models
INSTALL(DIRECTORY ./ DESTINATION ${SDATALOC}/models
FILES_MATCHING
PATTERN "*.mtl"
PATTERN "*.png"
PATTERN "*.obj"
PATTERN "*.gz"
PATTERN "CMakeFiles" EXCLUDE )

INSTALL(DIRECTORY blender/ DESTINATION share/${PACKAGE}/models/blender
INSTALL(DIRECTORY blender/ DESTINATION ${SDATALOC}/models/blender
FILES_MATCHING
PATTERN "*.blend"
PATTERN "CMakeFiles" EXCLUDE )
2 changes: 1 addition & 1 deletion nebulae/default/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
########### install files ###############

# install DSO catalog and textures
INSTALL(DIRECTORY ./ DESTINATION share/${PACKAGE}/nebulae/default
INSTALL(DIRECTORY ./ DESTINATION ${SDATALOC}/nebulae/default
FILES_MATCHING
PATTERN "*.dat"
PATTERN "*.png"
Expand Down
6 changes: 1 addition & 5 deletions plugins/AngleMeasure/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@ ADD_DEFINITIONS(-DANGLEMEASURE_PLUGIN_LICENSE="GNU GPLv2 or later")

ADD_SUBDIRECTORY( src )

IF(APPLE)
SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/Library/Application\ Support/Stellarium)
ElSE(APPLE)
SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/.stellarium)
ENDIF(APPLE)
SET(CMAKE_INSTALL_PREFIX $HDATALOC)
INSTALL(FILES DESTINATION "modules/AngleMeasure")
6 changes: 1 addition & 5 deletions plugins/ArchaeoLines/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,5 @@ ADD_DEFINITIONS(-DARCHAEOLINES_PLUGIN_LICENSE="GNU GPLv2 or later")

ADD_SUBDIRECTORY( src )

IF(APPLE)
SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/Library/Application\ Support/Stellarium)
ElSE(APPLE)
SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/.stellarium)
ENDIF(APPLE)
SET(CMAKE_INSTALL_PREFIX $HDATALOC)
INSTALL(FILES DESTINATION "modules/ArchaeoLines")
6 changes: 1 addition & 5 deletions plugins/CompassMarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@ ADD_DEFINITIONS(-DCOMPASSMARKS_PLUGIN_LICENSE="GNU GPLv2 or later")

ADD_SUBDIRECTORY( src )

IF(APPLE)
SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/Library/Application\ Support/Stellarium)
ElSE(APPLE)
SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/.stellarium)
ENDIF(APPLE)
SET(CMAKE_INSTALL_PREFIX $HDATALOC)
INSTALL(FILES DESTINATION "modules/CompassMarks")
7 changes: 1 addition & 6 deletions plugins/EquationOfTime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ SET(EQUATIONOFTIME_MINOR "1")
SET(EQUATIONOFTIME_PATCH "5")
SET(EQUATIONOFTIME_VERSION "${EQUATIONOFTIME_MAJOR}.${EQUATIONOFTIME_MINOR}.${EQUATIONOFTIME_PATCH}")

IF(APPLE)
SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/Library/Application\ Support/Stellarium)
ElSE(APPLE)
SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/.stellarium)
ENDIF(APPLE)

SET(CMAKE_INSTALL_PREFIX $HDATALOC)
ADD_DEFINITIONS(-DEQUATIONOFTIME_PLUGIN_VERSION="${EQUATIONOFTIME_VERSION}")
ADD_DEFINITIONS(-DEQUATIONOFTIME_PLUGIN_LICENSE="GNU GPLv2 or later")

Expand Down
7 changes: 1 addition & 6 deletions plugins/Exoplanets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ SET(EXOPLANETS_PLUGIN_MINOR "4")
SET(EXOPLANETS_PLUGIN_PATCH "1")
SET(EXOPLANETS_VERSION "${EXOPLANETS_PLUGIN_MAJOR}.${EXOPLANETS_PLUGIN_MINOR}.${EXOPLANETS_PLUGIN_PATCH}")

IF(APPLE)
SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/Library/Application\ Support/Stellarium)
ELSE(APPLE)
SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/.stellarium)
ENDIF(APPLE)

SET(CMAKE_INSTALL_PREFIX $HDATALOC)
ADD_DEFINITIONS(-DEXOPLANETS_PLUGIN_VERSION="${EXOPLANETS_VERSION}")
ADD_DEFINITIONS(-DEXOPLANETS_PLUGIN_LICENSE="GNU GPLv2 or later")

Expand Down
7 changes: 1 addition & 6 deletions plugins/FOV/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ SET(FOV_MINOR "1")
SET(FOV_PATCH "1")
SET(FOV_VERSION "${FOV_MAJOR}.${FOV_MINOR}.${FOV_PATCH}")

IF(APPLE)
SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/Library/Application\ Support/Stellarium)
ElSE(APPLE)
SET(CMAKE_INSTALL_PREFIX $ENV{HOME}/.stellarium)
ENDIF(APPLE)

SET(CMAKE_INSTALL_PREFIX $HDATALOC)
ADD_DEFINITIONS(-DFOV_PLUGIN_VERSION="${FOV_VERSION}")
ADD_DEFINITIONS(-DFOV_PLUGIN_LICENSE="GNU GPLv2 or later")

Expand Down
Loading

0 comments on commit 2931ffe

Please sign in to comment.