mirror of
https://github.com/glfw/glfw.git
synced 2025-04-11 19:32:02 +00:00
Export critical includes as part of the library.
This commit is contained in:
parent
dd8a678a66
commit
41f08bc82d
@ -128,6 +128,7 @@ write_basic_package_version_file(src/glfw3ConfigVersion.cmake
|
|||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Add subdirectories
|
# Add subdirectories
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
if (GLFW_BUILD_EXAMPLES)
|
if (GLFW_BUILD_EXAMPLES)
|
||||||
|
@ -1,12 +1,16 @@
|
|||||||
|
file(GLOB_RECURSE include_deps LIST_DIRECTORIES true ${GLFW_SOURCE_DIR}/deps/*.h)
|
||||||
|
SOURCE_GROUP(TREE ${GLFW_SOURCE_DIR}/deps PREFIX GLFW/deps FILES ${include_deps})
|
||||||
|
|
||||||
add_library(glfw ${GLFW_LIBRARY_TYPE}
|
add_library(glfw ${GLFW_LIBRARY_TYPE}
|
||||||
"${GLFW_SOURCE_DIR}/include/GLFW/glfw3.h"
|
"${GLFW_SOURCE_DIR}/include/GLFW/glfw3.h"
|
||||||
"${GLFW_SOURCE_DIR}/include/GLFW/glfw3native.h"
|
"${GLFW_SOURCE_DIR}/include/GLFW/glfw3native.h"
|
||||||
|
"${include_deps}"
|
||||||
internal.h platform.h mappings.h
|
internal.h platform.h mappings.h
|
||||||
context.c init.c input.c monitor.c platform.c vulkan.c window.c
|
context.c init.c input.c monitor.c platform.c vulkan.c window.c
|
||||||
egl_context.c osmesa_context.c null_platform.h null_joystick.h
|
egl_context.c osmesa_context.c null_platform.h null_joystick.h
|
||||||
null_init.c null_monitor.c null_window.c null_joystick.c)
|
null_init.c null_monitor.c null_window.c null_joystick.c)
|
||||||
|
|
||||||
|
|
||||||
# The time, thread and module code is shared between all backends on a given OS,
|
# The time, thread and module code is shared between all backends on a given OS,
|
||||||
# including the null backend, which still needs those bits to be functional
|
# including the null backend, which still needs those bits to be functional
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
@ -139,6 +143,7 @@ set_target_properties(glfw PROPERTIES
|
|||||||
|
|
||||||
target_include_directories(glfw PUBLIC
|
target_include_directories(glfw PUBLIC
|
||||||
"$<BUILD_INTERFACE:${GLFW_SOURCE_DIR}/include>"
|
"$<BUILD_INTERFACE:${GLFW_SOURCE_DIR}/include>"
|
||||||
|
"$<BUILD_INTERFACE:${GLFW_SOURCE_DIR}/deps>"
|
||||||
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
|
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
|
||||||
target_include_directories(glfw PRIVATE
|
target_include_directories(glfw PRIVATE
|
||||||
"${GLFW_SOURCE_DIR}/src"
|
"${GLFW_SOURCE_DIR}/src"
|
||||||
|
Loading…
Reference in New Issue
Block a user