celestia/src/celengine/CMakeLists.txt

175 lines
2.8 KiB
CMake

set(CELENGINE_SOURCES
asterism.cpp
asterism.h
astro.cpp
astro.h
atmosphere.h
axisarrow.cpp
axisarrow.h
body.cpp
body.h
boundaries.cpp
boundaries.h
catalogxref.cpp
catalogxref.h
category.cpp
category.h
catentry.cpp
catentry.h
console.cpp
console.h
constellation.cpp
constellation.h
curveplot.cpp
curveplot.h
dds.cpp
deepskyobj.cpp
deepskyobj.h
dispmap.cpp
dispmap.h
dsodb.cpp
dsodb.h
dsoname.cpp
dsoname.h
dsooctree.cpp
dsooctree.h
execenv.h
frame.cpp
frame.h
frametree.cpp
frametree.h
galaxy.cpp
galaxy.h
geometry.h
#glcontext.cpp
#glcontext.h
glmarker.cpp
globular.cpp
globular.h
glshader.cpp
glshader.h
image.cpp
image.h
lightenv.h
location.cpp
location.h
lodspheremesh.cpp
lodspheremesh.h
marker.cpp
marker.h
meshmanager.cpp
meshmanager.h
modelgeometry.cpp
modelgeometry.h
multitexture.cpp
multitexture.h
name.cpp
name.h
nebula.cpp
nebula.h
observer.cpp
observer.h
octree.h
opencluster.cpp
opencluster.h
overlay.cpp
overlay.h
overlayimage.cpp
overlayimage.h
parseobject.cpp
parseobject.h
parser.cpp
parser.h
# particlesystem.cpp
# particlesystemfile.cpp
# particlesystemfile.h
# particlesystem.h
planetgrid.cpp
planetgrid.h
rectangle.h
referencemark.h
rendcontext.cpp
rendcontext.h
render.cpp
renderglsl.cpp
renderglsl.h
render.h
renderinfo.h
rotationmanager.cpp
rotationmanager.h
selection.cpp
selection.h
shadermanager.cpp
shadermanager.h
shared.h
simulation.cpp
simulation.h
skygrid.cpp
skygrid.h
solarsys.cpp
solarsys.h
spheremesh.cpp
spheremesh.h
starbrowser.cpp
starbrowser.h
starcolors.cpp
starcolors.h
star.cpp
star.h
stardb.cpp
stardb.h
starname.cpp
starname.h
staroctree.cpp
staroctree.h
stellarclass.cpp
stellarclass.h
surface.h
texmanager.cpp
texmanager.h
texture.cpp
texture.h
timeline.cpp
timeline.h
timelinephase.cpp
timelinephase.h
tokenizer.cpp
tokenizer.h
trajmanager.cpp
trajmanager.h
univcoord.cpp
univcoord.h
universe.cpp
universe.h
vecgl.h
vertexobject.cpp
vertexobject.h
virtualtex.cpp
virtualtex.h
visibleregion.cpp
visibleregion.h
)
# The object files in the celephem directory are merged in the celengine library
add_library(celengine STATIC ${CELENGINE_SOURCES} $<TARGET_OBJECTS:celephem>)
#[[
add_library(celengine SHARED ${CELENGINE_SOURCES})
set_target_properties(celengine PROPERTIES
VERSION ${VERSION}
SOVERSION ${VERSION}
)
]]#
add_dependencies(celengine cel3ds celmath celmodel celtxf celutil)
target_link_libraries(celengine cel3ds celmath celmodel celtxf celutil)
# Some celephem objects depend on Spice
if(ENABLE_SPICE)
target_link_libraries(celengine CSPICE::CSPICE)
endif()
cotire(celengine)
#install(TARGETS celengine LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})