forked from neka-nat/cupoch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert plain cupoch targets to namespaced targets
This catches any undefined targets immediately during the configuration step.
- Loading branch information
Showing
20 changed files
with
96 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
macro(EXAMPLE_CPP EXAMPLE_CPP_NAME) | ||
set(DEPS) | ||
foreach(module ${ARGN}) | ||
if(NOT BUILD_${module}) | ||
message(STATUS "Skipping example ${EXAMPLE_CPP_NAME} because ${module} is not enabled") | ||
if(NOT BUILD_cupoch_${module}) | ||
message(STATUS "Skipping example ${EXAMPLE_CPP_NAME} because cupoch_${module} is not enabled") | ||
return() | ||
endif() | ||
list(APPEND DEPS cupoch::${module}) | ||
endforeach() | ||
add_executable(${EXAMPLE_CPP_NAME} "${EXAMPLE_CPP_NAME}.cpp") | ||
target_link_libraries(${EXAMPLE_CPP_NAME} PRIVATE ${ARGN}) | ||
target_link_libraries(${EXAMPLE_CPP_NAME} PRIVATE ${DEPS}) | ||
set_target_properties(${EXAMPLE_CPP_NAME} PROPERTIES | ||
FOLDER "examples/cpp/" | ||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/examples") | ||
endmacro(EXAMPLE_CPP) | ||
|
||
EXAMPLE_CPP(image cupoch_visualization cupoch_geometry cupoch_io) | ||
EXAMPLE_CPP(pointcloud cupoch_visualization cupoch_geometry cupoch_io) | ||
EXAMPLE_CPP(trianglemesh cupoch_visualization cupoch_geometry cupoch_io) | ||
EXAMPLE_CPP(registration cupoch_visualization cupoch_registration cupoch_io) | ||
EXAMPLE_CPP(voxelization cupoch_visualization cupoch_geometry cupoch_io) | ||
EXAMPLE_CPP(kinematics cupoch_visualization cupoch_kinematics cupoch_io) | ||
EXAMPLE_CPP(image visualization geometry io) | ||
EXAMPLE_CPP(pointcloud visualization geometry io) | ||
EXAMPLE_CPP(trianglemesh visualization geometry io) | ||
EXAMPLE_CPP(registration visualization registration io) | ||
EXAMPLE_CPP(voxelization visualization geometry io) | ||
EXAMPLE_CPP(kinematics visualization kinematics io) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters