Fixed linking to gtsam library in examples
parent
74bb1ff9ae
commit
9223da18c9
|
@ -18,7 +18,7 @@ foreach(example_src ${example_srcs} )
|
|||
set_target_properties(${example_bin} PROPERTIES EXCLUDE_FROM_ALL ON)
|
||||
endif()
|
||||
|
||||
target_link_libraries(${example_bin} gtsam-static)
|
||||
target_link_libraries(${example_bin} ${gtsam-default})
|
||||
if(NOT MSVC)
|
||||
add_custom_target(${example_bin}.run ${EXECUTABLE_OUTPUT_PATH}${example_bin} ${ARGN})
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue