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.
This commit is contained in:
irabeson 2021-06-07 11:35:52 -04:00
parent 855c3ced88
commit b3ed4466f3

View File

@ -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)