CMake: Build DXF programs
This commit is contained in:
parent
cbbfbfd0bb
commit
4fdcaef59f
|
|
@ -12,5 +12,8 @@ add_subdirectory(src/bam)
|
|||
add_subdirectory(src/flt)
|
||||
add_subdirectory(src/fltegg)
|
||||
add_subdirectory(src/fltprogs)
|
||||
add_subdirectory(src/dxf)
|
||||
add_subdirectory(src/dxfegg)
|
||||
add_subdirectory(src/dxfprogs)
|
||||
add_subdirectory(src/pstatserver)
|
||||
add_subdirectory(src/gtk-stats)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
set(P3DXF_HEADERS
|
||||
dxfFile.h
|
||||
dxfLayer.h
|
||||
dxfLayerMap.h
|
||||
dxfVertex.h)
|
||||
|
||||
set(P3DXF_SOURCES
|
||||
dxfFile.cxx
|
||||
dxfLayer.cxx
|
||||
dxfLayerMap.cxx
|
||||
dxfVertex.cxx)
|
||||
|
||||
composite_sources(p3dxf P3DXF_SOURCES)
|
||||
add_library(p3dxf STATIC ${P3DXF_HEADERS} ${P3DXF_SOURCES})
|
||||
target_link_libraries(p3dxf p3pandatoolbase)
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
set(P3DXFEGG_HEADERS
|
||||
dxfToEggConverter.h
|
||||
dxfToEggLayer.h)
|
||||
|
||||
set(P3DXFEGG_SOURCES
|
||||
dxfToEggConverter.cxx
|
||||
dxfToEggLayer.cxx)
|
||||
|
||||
add_library(p3dxfegg STATIC ${P3DXFEGG_HEADERS} ${P3DXFEGG_SOURCES})
|
||||
target_link_libraries(p3dxfegg p3dxf p3converter)
|
||||
|
||||
# This is only needed for binaries in the pandatool package. It is not useful
|
||||
# for user applications, so it is not installed.
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
add_executable(dxf-points dxfPoints.cxx dxfPoints.h)
|
||||
target_link_libraries(dxf-points p3progbase p3dxf)
|
||||
install(TARGETS dxf-points DESTINATION bin)
|
||||
|
||||
add_executable(egg2dxf eggToDXF.cxx eggToDXF.h eggToDXFLayer.cxx eggToDXFLayer.h)
|
||||
target_link_libraries(egg2dxf p3dxfegg p3eggbase p3progbase)
|
||||
install(TARGETS egg2dxf DESTINATION bin)
|
||||
|
||||
add_executable(dxf2egg dxfToEgg.cxx dxfToEgg.h)
|
||||
target_link_libraries(dxf2egg p3dxfegg p3eggbase p3progbase)
|
||||
install(TARGETS dxf2egg DESTINATION bin)
|
||||
Loading…
Reference in New Issue