Skip to content

Commit

Permalink
Install license files
Browse files Browse the repository at this point in the history
- Use glob to handle models files
- Move .3ds versions of models into models-extra directory for ease of use (install location remains the same)
  • Loading branch information
ajtribick committed Jan 13, 2024
1 parent fc3181b commit a8ca06f
Show file tree
Hide file tree
Showing 31 changed files with 14 additions and 82 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

cmake_minimum_required(VERSION 3.8)

project(celestia VERSION "1.7.0" LANGUAGES NONE)
# set languages to C to stop GNUInstallDirs from complaining
project(celestia VERSION "1.7.0" LANGUAGES C)

option(ENABLE_NLS "Enable object names translation? (Default: on)" ON)

Expand Down Expand Up @@ -38,6 +39,7 @@ add_subdirectory(data)
add_subdirectory(extras)
add_subdirectory(extras-standard)
add_subdirectory(models)
add_subdirectory(models-extra)
add_subdirectory(po)
add_subdirectory(textures)
add_subdirectory(warp)
1 change: 1 addition & 0 deletions data/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ set(DATA_SOURCES
saoxindex.dat
starnames.dat
stars.dat
stars.dat.license
extrasolar.ssc
solarsys.ssc
charm2.stc
Expand Down
5 changes: 5 additions & 0 deletions models-extra/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: Celestia Development Team
# SPDX-License-Identifier: GPL-2.0-or-later

file(GLOB MODELS_EXTRA_SOURCES "*.3ds" "*.cmod" "*.cms" "*.png" "*.license")
install(FILES ${MODELS_EXTRA_SOURCES} DESTINATION "${DATADIR}/models" COMPONENT models-extras EXCLUDE_FROM_ALL)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
78 changes: 1 addition & 77 deletions models/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,81 +1,5 @@
# SPDX-FileCopyrightText: Celestia Development Team
# SPDX-License-Identifier: GPL-2.0-or-later

set(MODELS_SOURCES
amalthea.cmod
arrokoth.cmod
asteroid.cms
atlas.cmod
bacchus.cmod
borrelly.cms
calypso.cmod
castalia.cmod
daphnis.cmod
deimos.cmod
E0.png
epimetheus.cmod
eros.cmod
gaspra.cmod
geographos.cmod
golevka.cmod
halley.cmod
helene.cmod
hydra.cmod
hyperion.cmod
ida.cmod
itokawa.cmod
janus.cmod
kleopatra.cmod
ky26.cmod
larissa.cmod
MilkyWay.png
mimas.cmod
pan.cmod
pandora.cmod
phobos.cmod
phoebe.cmod
prometheus.cmod
proteus.cmod
puck.cmod
roughsphere.cms
S0.png
Sa.png
Sb.png
SBa.png
SBb.png
SBc.png
Sc.png
telesto.cmod
thebe.cmod
toutatis.cmod
vesta.cmod
)

set(MODELS_EXTRA_SOURCES
amalthea.3ds
bacchus.3ds
castalia.3ds
deimos.3ds
epimetheus.3ds
eros.3ds
gaspra.3ds
geographos.3ds
golevka.3ds
halley.3ds
hyperion.3ds
ida.3ds
janus.3ds
kleopatra.3ds
ky26.3ds
larissa.3ds
pandora.3ds
phobos.3ds
phoebe.3ds
prometheus.3ds
proteus.3ds
toutatis.3ds
vesta.3ds
)

file(GLOB MODELS_SOURCES "*.3ds" "*.cmod" "*.cms" "*.png" "*.license")
install(FILES ${MODELS_SOURCES} DESTINATION "${DATADIR}/models" COMPONENT core)
install(FILES ${MODELS_EXTRA_SOURCES} DESTINATION "${DATADIR}/models" COMPONENT models-extras EXCLUDE_FROM_ALL)
2 changes: 1 addition & 1 deletion textures/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: Celestia Development Team
# SPDX-License-Identifier: GPL-2.0-or-later

file(GLOB TEXTURES_SOURCES "*.jpg" "*.png")
file(GLOB TEXTURES_SOURCES "*.jpg" "*.png" "*.license")

install(FILES ${TEXTURES_SOURCES} DESTINATION "${DATADIR}/textures" COMPONENT core)

Expand Down
2 changes: 1 addition & 1 deletion textures/hires/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Celestia Development Team
# SPDX-License-Identifier: GPL-2.0-or-later

file(GLOB HIRES_SOURCES "*.jpg" "*.png" "*.dds")
file(GLOB HIRES_SOURCES "*.jpg" "*.png" "*.dds" "*.license")

install(FILES ${HIRES_SOURCES} DESTINATION "${DATADIR}/textures/hires" COMPONENT core)
2 changes: 1 addition & 1 deletion textures/lores/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Celestia Development Team
# SPDX-License-Identifier: GPL-2.0-or-later

file(GLOB LORES_SOURCES "*.jpg" "*.png" "*.dds")
file(GLOB LORES_SOURCES "*.jpg" "*.png" "*.dds" "*.license")

install(FILES ${LORES_SOURCES} DESTINATION "${DATADIR}/textures/lores" COMPONENT core)
2 changes: 1 addition & 1 deletion textures/medres/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: Celestia Development Team
# SPDX-License-Identifier: GPL-2.0-or-later

file(GLOB MEDRES_SOURCES "*.jpg" "*.png" "*.dds")
file(GLOB MEDRES_SOURCES "*.jpg" "*.png" "*.dds" "*.license")

install(FILES ${MEDRES_SOURCES} DESTINATION "${DATADIR}/textures/medres" COMPONENT core)

0 comments on commit a8ca06f

Please sign in to comment.