From 79cf669a7a8ee4e09ea7785897b1423d656a7f39 Mon Sep 17 00:00:00 2001 From: Robert Bielik Date: Thu, 13 Dec 2018 13:06:31 +0100 Subject: [PATCH] Updates modules CMakeLists.txt (#1) Adds target_include_directories so dependent targets using NE10 have include directories setup automatically. --- modules/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index 4f158e9d..56b393e2 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -381,6 +381,8 @@ if(NE10_BUILD_STATIC OR ANDROID_PLATFORM OR IOS_DEMO) LINKER_LANGUAGE C ) + target_include_directories(NE10 PUBLIC ../inc) + if(IOS_DEMO) install(TARGETS NE10 DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/../ios/NE10Demo/libs/) @@ -397,6 +399,8 @@ if(NE10_BUILD_SHARED) ) target_link_libraries(NE10_shared m) + + target_include_directories(NE10_shared PUBLIC ../inc) set_target_properties(NE10_shared PROPERTIES OUTPUT_NAME "NE10"