panda3d/direct/src/motiontrail/CMakeLists.txt
Sam Edwards 1a654cba04 CMake: Record the location that headers are installed
This populates INTERFACE_INCLUDE_DIRECTORIES on the targets
after they're installed.
2019-08-30 22:58:18 -06:00

25 lines
673 B
CMake

set(P3MOTIONTRAIL_HEADERS
config_motiontrail.h
cMotionTrail.h
)
set(P3MOTIONTRAIL_SOURCES
config_motiontrail.cxx
cMotionTrail.cxx
)
add_component_library(p3motiontrail SYMBOL BUILDING_DIRECT_MOTIONTRAIL
${P3MOTIONTRAIL_HEADERS} ${P3MOTIONTRAIL_SOURCES})
target_link_libraries(p3motiontrail p3directbase panda)
target_interrogate(p3motiontrail ALL)
if(NOT BUILD_METALIBS)
install(TARGETS p3motiontrail
EXPORT Direct COMPONENT Direct
DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include/panda3d
ARCHIVE COMPONENT DirectDevel)
endif()
install(FILES ${P3MOTIONTRAIL_HEADERS} COMPONENT DirectDevel DESTINATION include/panda3d)