mirror of
https://github.com/boostorg/yap.git
synced 2026-01-30 20:32:17 +00:00
34 lines
787 B
CMake
34 lines
787 B
CMake
include_directories(${CMAKE_HOME_DIRECTORY})
|
|
|
|
macro(add_sample name)
|
|
add_executable(${name} ${name}.cpp)
|
|
target_link_libraries(${name} yap)
|
|
if (clang_on_linux)
|
|
target_link_libraries(${name} c++)
|
|
endif ()
|
|
endmacro()
|
|
|
|
add_sample(minimal)
|
|
add_sample(hello_world)
|
|
add_sample(hello_world_redux)
|
|
add_sample(calc1)
|
|
add_sample(calc2a)
|
|
add_sample(calc2b)
|
|
add_sample(calc3)
|
|
add_sample(lazy_vector)
|
|
add_sample(tarray)
|
|
add_sample(vec3)
|
|
add_sample(vector)
|
|
add_sample(mixed)
|
|
add_sample(map_assign)
|
|
add_sample(future_group)
|
|
add_sample(transform_terminals)
|
|
add_sample(pipable_algorithms)
|
|
add_sample(let)
|
|
|
|
add_executable(autodiff autodiff_example.cpp)
|
|
target_link_libraries(autodiff yap boost autodiff_library)
|
|
if (clang_on_linux)
|
|
target_link_libraries(autodiff c++)
|
|
endif ()
|