Commit 222a21dc authored by Dominik Charousset's avatar Dominik Charousset

Fix dependencies for examples and tools

parent c2779061
......@@ -8,10 +8,9 @@ include_directories(${LIBCAF_INCLUDE_DIRS})
macro(add folder name)
add_executable(${name} ${folder}/${name}.cpp ${ARGN})
target_link_libraries(${name}
${LDFLAGS}
${CAF_EXTRA_LDFLAGS}
${CAF_LIBRARIES}
${PTHREAD_LIBRARIES}
${WSLIB})
${PTHREAD_LIBRARIES})
install(FILES ${folder}/${name}.cpp DESTINATION share/caf/examples/${folder})
add_dependencies(${name} all_examples)
endmacro()
......
......@@ -8,10 +8,9 @@ include_directories(${LIBCAF_INCLUDE_DIRS})
macro(add name)
add_executable(${name} ${name}.cpp ${ARGN})
target_link_libraries(${name}
${LDFLAGS}
${CAF_EXTRA_LDFLAGS}
${CAF_LIBRARIES}
${PTHREAD_LIBRARIES}
${WSLIB})
${PTHREAD_LIBRARIES})
install(FILES ${name}.cpp DESTINATION share/caf/tools/${folder})
add_dependencies(${name} all_tools)
endmacro()
......
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