From b3ed4466f393c5a4f3b55a8ef0721872d871458c Mon Sep 17 00:00:00 2001 From: irabeson Date: Mon, 7 Jun 2021 11:35:52 -0400 Subject: [PATCH] Add include directory to chai target. This way, the path to the Chai's include directory is automagicaly knowns by any CMake project using chai. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b706a15a..eaedd07b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -248,6 +248,7 @@ set(CHAISCRIPT_LIBS stdlib parser) add_executable(chai src/main.cpp ${Chai_INCLUDES}) target_link_libraries(chai ${LIBS} ${CHAISCRIPT_LIBS}) +target_include_directories(chai PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include) if(BUILD_SAMPLES) add_executable(sanity_checks src/sanity_checks.cpp)