From 1483edbd0f6464dc4c10264ee6f3450041dff120 Mon Sep 17 00:00:00 2001 From: nicebyte <12521759+nicebyte@users.noreply.github.com> Date: Sun, 11 Aug 2024 16:29:41 -0700 Subject: [PATCH] [build] misc cmakelists fixes --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 88e931a2..2dbe36e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,6 +119,7 @@ else() # Vulkan backend. nmk_static_library(NAME nicegraf-vk SRCS ${NICEGRAF_VK_SRCS} + PUB_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/include DEPS ${NICEGRAF_VK_DEPS}) endif() @@ -137,10 +138,10 @@ if (NGF_BUILD_TESTS STREQUAL "yes") DEPS nicegraf-vk-for-tests "$>,dl,>") endif() -add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/misc/common) # Build samples only if explicitly requested. if (NGF_BUILD_SAMPLES STREQUAL "yes") + add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/misc/common) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/samples/deps/glfw) # Ensure we have the required dependencies are available.