diff --git a/CMakeLists.txt b/CMakeLists.txt index f5e538bf..7ca0cfba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,6 +128,7 @@ write_basic_package_version_file(src/glfw3ConfigVersion.cmake #-------------------------------------------------------------------- # Add subdirectories #-------------------------------------------------------------------- + add_subdirectory(src) if (GLFW_BUILD_EXAMPLES) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 01f191c9..60647b4a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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} "${GLFW_SOURCE_DIR}/include/GLFW/glfw3.h" "${GLFW_SOURCE_DIR}/include/GLFW/glfw3native.h" + "${include_deps}" internal.h platform.h mappings.h 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 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, # including the null backend, which still needs those bits to be functional if (APPLE) @@ -139,6 +143,7 @@ set_target_properties(glfw PROPERTIES target_include_directories(glfw PUBLIC "$" + "$" "$") target_include_directories(glfw PRIVATE "${GLFW_SOURCE_DIR}/src"