Fix CMakeLists.txt for installing caf-tools

This change fixes the outcome of `make install`, which previously would
install the tools' .cpp files to `/usr/local/share/caf/tools`. Now, we
install the built tool binaries instead.
parent 9a09b5de
...@@ -2,7 +2,7 @@ add_custom_target(all_tools) ...@@ -2,7 +2,7 @@ add_custom_target(all_tools)
macro(add name) macro(add name)
add_executable(${name} ${name}.cpp ${ARGN}) add_executable(${name} ${name}.cpp ${ARGN})
install(FILES ${name}.cpp DESTINATION ${CMAKE_INSTALL_DATADIR}/caf/tools) install(TARGETS ${name} DESTINATION ${CMAKE_INSTALL_DATADIR}/caf/tools)
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