Fixed CMake errors when Kraken is included from a parent CMake project
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
2026-03-09 23:32:54 -07:00
parent 5d077cee6d
commit 5293c769a3
3 changed files with 2 additions and 3 deletions

View File

@@ -1,2 +1 @@
project (smoke_tests)
add_subdirectory(hello_cube) add_subdirectory(hello_cube)

View File

@@ -32,7 +32,7 @@ else(WIN32)
endif(WIN32) endif(WIN32)
add_dependencies(kraken_cube kraken_cube_assets) add_dependencies(kraken_cube kraken_cube_assets)
target_include_directories(kraken_cube PRIVATE ${CMAKE_SOURCE_DIR}/hydra/include ${CMAKE_SOURCE_DIR}/kraken/public) target_include_directories(kraken_cube PRIVATE ${PROJECT_SOURCE_DIR}/hydra/include ${PROJECT_SOURCE_DIR}/kraken/public)
TARGET_LINK_LIBRARIES( kraken_cube kraken ${EXTRA_LIBS} ) TARGET_LINK_LIBRARIES( kraken_cube kraken ${EXTRA_LIBS} )

View File

@@ -13,7 +13,7 @@ else(WIN32)
set(CMAKE_CXX_COMPILER "clang++") set(CMAKE_CXX_COMPILER "clang++")
endif(WIN32) endif(WIN32)
target_include_directories(kraken_convert PRIVATE ${CMAKE_SOURCE_DIR}/hydra/include ${CMAKE_SOURCE_DIR}/kraken/public) target_include_directories(kraken_convert PRIVATE ${PROJECT_SOURCE_DIR}/hydra/include ${PROJECT_SOURCE_DIR}/kraken/public)
TARGET_LINK_LIBRARIES( kraken_convert kraken ${EXTRA_LIBS} ) TARGET_LINK_LIBRARIES( kraken_convert kraken ${EXTRA_LIBS} )