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