Commit 9aa2ff45 authored by Dominik Charousset's avatar Dominik Charousset

Fix build without CAF::io target

parent 5fe4bfcb
add_custom_target(all_tools)
include_directories(${LIBCAF_INCLUDE_DIRS})
macro(add name)
add_executable(${name} ${name}.cpp ${ARGN})
target_link_libraries(${name} CAF::core CAF::io)
install(FILES ${name}.cpp DESTINATION ${CMAKE_INSTALL_DATADIR}/caf/tools/${folder})
install(FILES ${name}.cpp DESTINATION ${CMAKE_INSTALL_DATADIR}/caf/tools)
add_dependencies(${name} all_tools)
endmacro()
if(WIN32)
add(caf-vec)
target_link_libraries(caf-vec PRIVATE CAF::core)
if(TARGET CAF::io)
if(WIN32)
message(STATUS "skip caf-run (not supported on Windows)")
else()
else()
add(caf-run)
target_link_libraries(caf-run PRIVATE CAF::io CAF::core)
endif()
endif()
add(caf-vec)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment