Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix CMakeLists.txt about executables #64

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 9 additions & 35 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,40 +73,14 @@ endif()

ament_auto_package()

add_executable(align
apps/align.cpp
)
add_dependencies(align
ndt_omp multigrid_ndt_omp
)
target_link_libraries(align
${PCL_LIBRARIES}
ndt_omp multigrid_ndt_omp
)

# regression test
add_executable(regression_test
apps/regression_test.cpp
)
add_dependencies(regression_test
ndt_omp multigrid_ndt_omp
)
target_link_libraries(regression_test
${PCL_LIBRARIES}
ndt_omp multigrid_ndt_omp
set(EXECUTABLES
"align"
"regression_test"
"check_covariance"
)

# check_covariance
add_executable(check_covariance
apps/check_covariance.cpp
)
add_dependencies(check_covariance
ndt_omp multigrid_ndt_omp
)
include_directories(
${PROJECT_SOURCE_DIR}/include
)
target_link_libraries(check_covariance
${PCL_LIBRARIES}
ndt_omp multigrid_ndt_omp
)
foreach(executable IN LISTS EXECUTABLES)
add_executable(${executable} apps/${executable}.cpp)
add_dependencies(${executable} ndt_omp multigrid_ndt_omp)
target_link_libraries(${executable} ndt_omp multigrid_ndt_omp ${PCL_LIBRARIES})
endforeach()
Loading