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
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:
@@ -1,2 +1 @@
|
|||||||
project (smoke_tests)
|
|
||||||
add_subdirectory(hello_cube)
|
add_subdirectory(hello_cube)
|
||||||
|
|||||||
@@ -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} )
|
||||||
|
|
||||||
|
|||||||
@@ -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} )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user