CMake: Fix build when HAVE_EGG=OFF

This commit is contained in:
Sam Edwards 2018-12-29 02:26:53 -07:00
parent 6c5bf73141
commit 788efb9f6d
23 changed files with 126 additions and 34 deletions

View File

@ -2,14 +2,18 @@ add_executable(bam-info bamInfo.cxx bamInfo.h)
target_link_libraries(bam-info p3progbase panda)
install(TARGETS bam-info EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(egg2bam eggToBam.cxx eggToBam.h)
target_link_libraries(egg2bam p3eggbase p3progbase panda)
install(TARGETS egg2bam EXPORT Tools COMPONENT Tools DESTINATION bin)
if(HAVE_EGG)
add_executable(bam2egg bamToEgg.cxx bamToEgg.h)
target_link_libraries(bam2egg p3converter p3eggbase p3progbase panda)
install(TARGETS bam2egg EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(egg2bam eggToBam.cxx eggToBam.h)
target_link_libraries(egg2bam p3eggbase p3progbase panda)
install(TARGETS egg2bam EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(pts2bam ptsToBam.cxx ptsToBam.h)
target_link_libraries(pts2bam p3progbase pandaegg panda)
install(TARGETS pts2bam EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(bam2egg bamToEgg.cxx bamToEgg.h)
target_link_libraries(bam2egg p3converter p3eggbase p3progbase panda)
install(TARGETS bam2egg EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(pts2bam ptsToBam.cxx ptsToBam.h)
target_link_libraries(pts2bam p3progbase pandaegg panda)
install(TARGETS pts2bam EXPORT Tools COMPONENT Tools DESTINATION bin)
endif()

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3CONVERTER_HEADERS
somethingToEggConverter.h somethingToEggConverter.I
eggToSomethingConverter.h eggToSomethingConverter.I

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3DXFEGG_HEADERS
dxfToEggConverter.h
dxfToEggLayer.h

View File

@ -2,10 +2,14 @@ add_executable(dxf-points dxfPoints.cxx dxfPoints.h)
target_link_libraries(dxf-points p3progbase p3dxf)
install(TARGETS dxf-points EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(egg2dxf eggToDXF.cxx eggToDXF.h eggToDXFLayer.cxx eggToDXFLayer.h)
target_link_libraries(egg2dxf p3dxfegg p3eggbase p3progbase)
install(TARGETS egg2dxf EXPORT Tools COMPONENT Tools DESTINATION bin)
if(HAVE_EGG)
add_executable(dxf2egg dxfToEgg.cxx dxfToEgg.h)
target_link_libraries(dxf2egg p3dxfegg p3eggbase p3progbase)
install(TARGETS dxf2egg EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(egg2dxf eggToDXF.cxx eggToDXF.h eggToDXFLayer.cxx eggToDXFLayer.h)
target_link_libraries(egg2dxf p3dxfegg p3eggbase p3progbase)
install(TARGETS egg2dxf EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(dxf2egg dxfToEgg.cxx dxfToEgg.h)
target_link_libraries(dxf2egg p3dxfegg p3eggbase p3progbase)
install(TARGETS dxf2egg EXPORT Tools COMPONENT Tools DESTINATION bin)
endif()

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3EGG_MKFONT_HEADERS
eggMakeFont.h
rangeDescription.h rangeDescription.I

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3EGG_OPTCHAR_HEADERS
config_egg_optchar.h
eggOptchar.h

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
add_executable(egg-palettize eggPalettize.cxx eggPalettize.h)
target_link_libraries(egg-palettize p3palettizer p3eggbase p3progbase)
install(TARGETS egg-palettize EXPORT Tools COMPONENT Tools DESTINATION bin)

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3EGG_QTESS_HEADERS
config_egg_qtess.h
eggQtess.h

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3EGGBASE_HEADERS
eggBase.h eggConverter.h eggFilter.h
eggMakeSomething.h

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3EGGCHARBASE_HEADERS
config_eggcharbase.h
eggBackPointer.h

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
add_executable(egg-crop eggCrop.cxx eggCrop.h)
target_link_libraries(egg-crop p3eggbase)
install(TARGETS egg-crop EXPORT Tools COMPONENT Tools DESTINATION bin)

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3FLTEGG_HEADERS
fltToEggConverter.h fltToEggConverter.I
fltToEggLevelState.h fltToEggLevelState.I

View File

@ -10,10 +10,14 @@ add_executable(fltcopy fltCopy.cxx fltCopy.h)
target_link_libraries(fltcopy p3progbase p3cvscopy p3flt)
install(TARGETS fltcopy EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(egg2flt eggToFlt.cxx eggToFlt.h)
target_link_libraries(egg2flt p3fltegg p3eggbase p3progbase)
install(TARGETS egg2flt EXPORT Tools COMPONENT Tools DESTINATION bin)
if(HAVE_EGG)
add_executable(flt2egg fltToEgg.cxx fltToEgg.h)
target_link_libraries(flt2egg p3fltegg p3eggbase p3progbase)
install(TARGETS flt2egg EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(egg2flt eggToFlt.cxx eggToFlt.h)
target_link_libraries(egg2flt p3fltegg p3eggbase p3progbase)
install(TARGETS egg2flt EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(flt2egg fltToEgg.cxx fltToEgg.h)
target_link_libraries(flt2egg p3fltegg p3eggbase p3progbase)
install(TARGETS flt2egg EXPORT Tools COMPONENT Tools DESTINATION bin)
endif()

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3LWOEGG_HEADERS
cLwoClip.h cLwoClip.I
cLwoLayer.h cLwoLayer.I

View File

@ -2,6 +2,10 @@ add_executable(lwo-scan lwoScan.cxx lwoScan.h)
target_link_libraries(lwo-scan p3progbase p3lwo)
install(TARGETS lwo-scan EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(lwo2egg lwoToEgg.cxx lwoToEgg.h)
target_link_libraries(lwo2egg p3lwoegg p3eggbase p3progbase)
install(TARGETS lwo2egg EXPORT Tools COMPONENT Tools DESTINATION bin)
if(HAVE_EGG)
add_executable(lwo2egg lwoToEgg.cxx lwoToEgg.h)
target_link_libraries(lwo2egg p3lwoegg p3eggbase p3progbase)
install(TARGETS lwo2egg EXPORT Tools COMPONENT Tools DESTINATION bin)
endif()

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3OBJEGG_HEADERS
config_objegg.h
eggToObjConverter.h

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
add_executable(egg2obj eggToObj.cxx eggToObj.h)
target_link_libraries(egg2obj p3objegg p3eggbase)
install(TARGETS egg2obj EXPORT Tools COMPONENT Tools DESTINATION bin)

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3PALETTIZER_HEADERS
config_palettizer.h
destTextureImage.h

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3PTLOADER_HEADERS
config_ptloader.h
loaderFileTypePandatool.h

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3VRMLEGG_HEADERS
indexedFaceSet.h
vrmlAppearance.h

View File

@ -2,6 +2,10 @@ add_executable(vrml-trans vrmlTrans.cxx vrmlTrans.h)
target_link_libraries(vrml-trans p3progbase p3vrml)
install(TARGETS vrml-trans EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(vrml2egg vrmlToEgg.cxx vrmlToEgg.h)
target_link_libraries(vrml2egg p3vrmlegg p3eggbase p3progbase)
install(TARGETS vrml2egg EXPORT Tools COMPONENT Tools DESTINATION bin)
if(HAVE_EGG)
add_executable(vrml2egg vrmlToEgg.cxx vrmlToEgg.h)
target_link_libraries(vrml2egg p3vrmlegg p3eggbase p3progbase)
install(TARGETS vrml2egg EXPORT Tools COMPONENT Tools DESTINATION bin)
endif()

View File

@ -1,3 +1,7 @@
if(NOT HAVE_EGG)
return()
endif()
set(P3XFILEEGG_HEADERS
xFileAnimationSet.h xFileAnimationSet.I
xFileFace.h xFileMaker.h

View File

@ -1,11 +1,15 @@
add_executable(egg2x eggToX.cxx eggToX.h)
target_link_libraries(egg2x p3xfileegg p3eggbase p3progbase)
install(TARGETS egg2x EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(x-trans xFileTrans.cxx xFileTrans.h)
target_link_libraries(x-trans p3progbase p3xfile)
install(TARGETS x-trans EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(x2egg xFileToEgg.cxx xFileToEgg.h)
target_link_libraries(x2egg p3xfileegg p3eggbase p3progbase)
install(TARGETS x2egg EXPORT Tools COMPONENT Tools DESTINATION bin)
if(HAVE_EGG)
add_executable(egg2x eggToX.cxx eggToX.h)
target_link_libraries(egg2x p3xfileegg p3eggbase p3progbase)
install(TARGETS egg2x EXPORT Tools COMPONENT Tools DESTINATION bin)
add_executable(x2egg xFileToEgg.cxx xFileToEgg.h)
target_link_libraries(x2egg p3xfileegg p3eggbase p3progbase)
install(TARGETS x2egg EXPORT Tools COMPONENT Tools DESTINATION bin)
endif()