|
|
@ -59,11 +59,6 @@ list(APPEND CMAKE_MODULE_PATH "${GLFW_SOURCE_DIR}/CMake/modules") |
|
|
|
|
|
|
|
|
|
|
|
find_package(Threads REQUIRED) |
|
|
|
find_package(Threads REQUIRED) |
|
|
|
|
|
|
|
|
|
|
|
if (GLFW_BUILD_DOCS) |
|
|
|
|
|
|
|
set(DOXYGEN_SKIP_DOT TRUE) |
|
|
|
|
|
|
|
find_package(Doxygen) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------- |
|
|
|
#-------------------------------------------------------------------- |
|
|
|
# Report backend selection |
|
|
|
# Report backend selection |
|
|
|
#-------------------------------------------------------------------- |
|
|
|
#-------------------------------------------------------------------- |
|
|
@ -134,7 +129,7 @@ if (GLFW_BUILD_TESTS) |
|
|
|
add_subdirectory(tests) |
|
|
|
add_subdirectory(tests) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
if (DOXYGEN_FOUND AND GLFW_BUILD_DOCS) |
|
|
|
if (GLFW_BUILD_DOCS) |
|
|
|
add_subdirectory(docs) |
|
|
|
add_subdirectory(docs) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
@ -156,11 +151,6 @@ if (GLFW_INSTALL) |
|
|
|
install(FILES "${GLFW_BINARY_DIR}/src/glfw3.pc" |
|
|
|
install(FILES "${GLFW_BINARY_DIR}/src/glfw3.pc" |
|
|
|
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") |
|
|
|
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") |
|
|
|
|
|
|
|
|
|
|
|
if (DOXYGEN_FOUND AND GLFW_BUILD_DOCS) |
|
|
|
|
|
|
|
install(DIRECTORY "${GLFW_BINARY_DIR}/docs/html" |
|
|
|
|
|
|
|
DESTINATION "${CMAKE_INSTALL_DOCDIR}") |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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(CMake/cmake_uninstall.cmake.in |
|
|
|
configure_file(CMake/cmake_uninstall.cmake.in |
|
|
|