Skip to content

Commit

Permalink
fix binary path for spnavigt
Browse files Browse the repository at this point in the history
OpenIGTLink overwrites the default binary path, so that our executable was stored somewhere in _deps.
It is now stored directly in the CMake build dir.
  • Loading branch information
henrykrumb committed Jan 17, 2024
1 parent 5a506c2 commit 84e9c06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ link_directories(${X11_LIBRARIES})

add_executable(spnavigt src/utils.cpp src/spnavigt.cpp)
target_link_libraries(spnavigt OpenIGTLink ${X11_LIBRARIES} lspnav)
set_target_properties(spnavigt PROPERTIES OUTPUT_NAME spnavigt)
set_target_properties(spnavigt PROPERTIES
OUTPUT_NAME spnavigt
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
)


install(
Expand Down

0 comments on commit 84e9c06

Please sign in to comment.