From 25c17b9fcbf7a21e9fa19c4a8f08b0406437be24 Mon Sep 17 00:00:00 2001 From: Tobias Frisch Date: Fri, 4 Oct 2024 10:34:12 +0200 Subject: Allow building using external dependencies (#5076) * Add options to prevent usage of own submodules Signed-off-by: Jacki * Allow using external unordered dense headers Signed-off-by: Jacki * Link system wide installed unordered dense Signed-off-by: Jacki * Allow external header usage for lz4 and spirv Signed-off-by: Jacki * Add more options to disable targets Signed-off-by: Jacki * Add option to provide explizit path for spirv headers and remove earlier options that break the build process Signed-off-by: Jacki * Rename options to use common prefix Signed-off-by: Jacki * Fix indentation for the cmake changes Signed-off-by: Jacki * Add advanced_option function for cmake * Normalize includes between system and submodule dependencies Fix any before-accidentally-working problems * Add option for enabling/disabling slang-rhi Signed-off-by: Jacki * Pass correct include path for cpu tests * Correct include path --------- Signed-off-by: Jacki Co-authored-by: Ellie Hermaszewska --- prelude/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'prelude') diff --git a/prelude/CMakeLists.txt b/prelude/CMakeLists.txt index 173cce542..49503ddf7 100644 --- a/prelude/CMakeLists.txt +++ b/prelude/CMakeLists.txt @@ -25,6 +25,7 @@ slang_add_target( EXCLUDE_FROM_ALL TARGET_NAME prelude INCLUDE_DIRECTORIES_PUBLIC ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_LIST_DIR}/../include + LINK_WITH_PRIVATE unordered_dense::unordered_dense PUBLIC_HEADERS ${CMAKE_CURRENT_LIST_DIR}/slang*.h # It's an object library, so the install step only installs the headers INSTALL -- cgit v1.2.3