mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Merge pull request #566 from IohannRabeson/cmake
Properly create a CMake a library called chaiscript
This commit is contained in:
commit
3703a78813
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user