From cb1fc768592a105ce3637d2a222378f1caa59617 Mon Sep 17 00:00:00 2001 From: Seb Bro Date: Wed, 4 Jul 2018 22:56:35 +0200 Subject: [PATCH] Add TARGET_INCLUDE_DIRECTORIES for assimp target With `TARGET_INCLUDE_DIRECTORIES` the `assimp` target can directly used in another CMake project, e.g. assimp can be used in a submodule with an `add_subdirectory()` call. --- code/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index f58244735..c238c7c4a 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -911,6 +911,12 @@ ENDIF (ASSIMP_BUILD_NONFREE_C4D_IMPORTER) ADD_LIBRARY( assimp ${assimp_src} ) +TARGET_INCLUDE_DIRECTORIES ( assimp PUBLIC + $ + $ + $ +) + TARGET_LINK_LIBRARIES(assimp ${ZLIB_LIBRARIES} ${OPENDDL_PARSER_LIBRARIES} ${IRRXML_LIBRARY} ) if(ANDROID AND ASSIMP_ANDROID_JNIIOSYSTEM)