mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
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:
parent
855c3ced88
commit
b3ed4466f3
@ -248,6 +248,7 @@ set(CHAISCRIPT_LIBS stdlib parser)
|
|||||||
|
|
||||||
add_executable(chai src/main.cpp ${Chai_INCLUDES})
|
add_executable(chai src/main.cpp ${Chai_INCLUDES})
|
||||||
target_link_libraries(chai ${LIBS} ${CHAISCRIPT_LIBS})
|
target_link_libraries(chai ${LIBS} ${CHAISCRIPT_LIBS})
|
||||||
|
target_include_directories(chai PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||||
|
|
||||||
if(BUILD_SAMPLES)
|
if(BUILD_SAMPLES)
|
||||||
add_executable(sanity_checks src/sanity_checks.cpp)
|
add_executable(sanity_checks src/sanity_checks.cpp)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user