Simplify file generation paths
This commit is contained in:
parent
b63b992fd6
commit
f22edf13dc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user