CMake: made install step export the targets
(transplanted from b2abaf7d4e4b2af671763b9ef2887dd30b42d6da)
This commit is contained in:
parent
2ae6fe8833
commit
95fd951c57
|
@ -213,12 +213,19 @@ if(PHYSFS_BUILD_TEST)
|
|||
set(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";test_physfs")
|
||||
endif()
|
||||
|
||||
install(TARGETS ${PHYSFS_INSTALL_TARGETS}
|
||||
install(TARGETS ${PHYSFS_INSTALL_TARGETS} EXPORT PhysFSExport
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX})
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
INCLUDES DESTINATION include)
|
||||
install(FILES src/physfs.h DESTINATION include)
|
||||
|
||||
install(EXPORT PhysFSExport
|
||||
DESTINATION "lib${LIB_SUFFIX}/cmake/PhysFS"
|
||||
FILE PhysFSConfig.cmake
|
||||
)
|
||||
|
||||
|
||||
find_package(Doxygen)
|
||||
if(DOXYGEN_FOUND)
|
||||
set(PHYSFS_OUTPUT_DOXYFILE "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile")
|
||||
|
|
Loading…
Reference in New Issue