Merge pull request #566 from IohannRabeson/cmake

Properly create a CMake a library called chaiscript
This commit is contained in:
Rob Loach 2021-06-09 01:22:51 -04:00 committed by GitHub
commit 3703a78813
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,7 +248,9 @@ 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)
add_library(chaiscript INTERFACE)
target_include_directories(chaiscript INTERFACE ${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)