Skip to content
Permalink
Browse files
CMake: made install step export the targets
  • Loading branch information
Kevin d'Orange authored and Kevin d'Orange committed Apr 19, 2019
1 parent f94ce06 commit 87918119094ff262064228e12a4ab321b0ce74f4
Showing with 9 additions and 2 deletions.
  1. +9 −2 CMakeLists.txt
@@ -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")

0 comments on commit 8791811

Please sign in to comment.