Debian Codegraph @

dynamicEDT3D/src/CMakeLists.txt

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 SET( dynamicEDT3D_SRCS
2 dynamicEDT3D.cpp
3 )
4
5 add_library(dynamicedt3d SHARED ${dynamicEDT3D_SRCS})
6 set_target_properties(dynamicedt3d PROPERTIES
7 VERSION ${DYNAMICEDT3D_VERSION}
8 SOVERSION ${DYNAMICEDT3D_SOVERSION}
9 )
10 target_link_libraries(dynamicedt3d ${OCTOMAP_LIBRARIES})
11
12 add_library(dynamicedt3d-static STATIC ${dynamicEDT3D_SRCS})
13 target_link_libraries(dynamicedt3d-static ${OCTOMAP_LIBRARIES})
14
15 SET_TARGET_PROPERTIES(dynamicedt3d-static PROPERTIES OUTPUT_NAME "dynamicedt3d")
16
17 if(NOT EXISTS "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/dynamicEDT3D")
18 file(MAKE_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/dynamicEDT3D")
19 endif()
20
21 export(TARGETS dynamicedt3d dynamicedt3d-static
22 FILE "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/dynamicEDT3D/dynamicEDT3DTargets.cmake")
23
24 # directly depend on the octomap library target when building the
25 # complete distribution, so it it recompiled as needed
26 if (CMAKE_PROJECT_NAME STREQUAL "octomap-distribution")
27 ADD_DEPENDENCIES(dynamicedt3d-static octomap-static)
28 ADD_DEPENDENCIES(dynamicedt3d octomap)
29 endif()
30
31 ADD_SUBDIRECTORY(examples)
32
33 install(TARGETS dynamicedt3d dynamicedt3d-static
34 EXPORT dynamicEDT3DTargets
35 INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
36 ${INSTALL_TARGETS_DEFAULT_ARGS}
37 )
38 install(EXPORT dynamicEDT3DTargets DESTINATION "${CMAKE_INSTALL_DATADIR}/dynamicEDT3D")