1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Simplify file generation paths

This commit is contained in:
Zbigniew Mandziejewicz 2016-02-02 05:55:24 +01:00 committed by Camilla Berglund
parent b63b992fd6
commit f22edf13dc

View File

@ -368,25 +368,22 @@ include(CMakePackageConfigHelpers)
set(GLFW_CONFIG_PATH "lib${LIB_SUFFIX}/cmake/glfw3") set(GLFW_CONFIG_PATH "lib${LIB_SUFFIX}/cmake/glfw3")
configure_package_config_file("${GLFW_SOURCE_DIR}/src/glfw3Config.cmake.in" configure_package_config_file(src/glfw3Config.cmake.in
"${GLFW_BINARY_DIR}/src/glfw3Config.cmake" src/glfw3Config.cmake
INSTALL_DESTINATION "${GLFW_CONFIG_PATH}" INSTALL_DESTINATION "${GLFW_CONFIG_PATH}"
NO_CHECK_REQUIRED_COMPONENTS_MACRO) NO_CHECK_REQUIRED_COMPONENTS_MACRO)
write_basic_package_version_file("${GLFW_BINARY_DIR}/src/glfw3ConfigVersion.cmake" write_basic_package_version_file(src/glfw3ConfigVersion.cmake
VERSION ${GLFW_VERSION_FULL} VERSION ${GLFW_VERSION_FULL}
COMPATIBILITY SameMajorVersion) COMPATIBILITY SameMajorVersion)
if (GLFW_BUILD_DOCS) if (GLFW_BUILD_DOCS)
configure_file("${GLFW_SOURCE_DIR}/docs/Doxyfile.in" configure_file(docs/Doxyfile.in docs/Doxyfile @ONLY)
"${GLFW_BINARY_DIR}/docs/Doxyfile" @ONLY)
endif() endif()
configure_file("${GLFW_SOURCE_DIR}/src/glfw_config.h.in" configure_file(src/glfw_config.h.in src/glfw_config.h @ONLY)
"${GLFW_BINARY_DIR}/src/glfw_config.h" @ONLY)
configure_file("${GLFW_SOURCE_DIR}/src/glfw3.pc.in" configure_file(src/glfw3.pc.in src/glfw3.pc @ONLY)
"${GLFW_BINARY_DIR}/src/glfw3.pc" @ONLY)
#-------------------------------------------------------------------- #--------------------------------------------------------------------
# Add subdirectories # Add subdirectories
@ -425,8 +422,8 @@ if (GLFW_INSTALL)
# Only generate this target if no higher-level project already has # Only generate this target if no higher-level project already has
if (NOT TARGET uninstall) if (NOT TARGET uninstall)
configure_file("${GLFW_SOURCE_DIR}/cmake_uninstall.cmake.in" configure_file(cmake_uninstall.cmake.in
"${GLFW_BINARY_DIR}/cmake_uninstall.cmake" IMMEDIATE @ONLY) cmake_uninstall.cmake IMMEDIATE @ONLY)
add_custom_target(uninstall add_custom_target(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_COMMAND}" -P