diff --git a/cartographer_ros/CMakeLists.txt b/cartographer_ros/CMakeLists.txt index da73fc9..43aa861 100644 --- a/cartographer_ros/CMakeLists.txt +++ b/cartographer_ros/CMakeLists.txt @@ -83,9 +83,9 @@ catkin_package( LIBRARIES ${PROJECT_NAME} ) -file(GLOB_RECURSE ALL_SRCS "*.cc" "*.h") -file(GLOB_RECURSE ALL_TESTS "*_test.cc") -file(GLOB_RECURSE ALL_EXECUTABLES "*_main.cc") +file(GLOB_RECURSE ALL_SRCS "cartographer_ros/*.cc" "cartographer_ros/*.h") +file(GLOB_RECURSE ALL_TESTS "cartographer_ros/*_test.cc") +file(GLOB_RECURSE ALL_EXECUTABLES "cartographer_ros/*_main.cc") file(GLOB_RECURSE ALL_GRPC_FILES "cartographer_ros/cartographer_grpc/*") list(REMOVE_ITEM ALL_SRCS ${ALL_TESTS}) list(REMOVE_ITEM ALL_SRCS ${ALL_EXECUTABLES}) @@ -172,7 +172,7 @@ install(TARGETS ${PROJECT_NAME} ) # Install source headers. -file(GLOB_RECURSE HDRS "*.h") +file(GLOB_RECURSE HDRS "cartographer_ros/*.h") foreach(HDR ${HDRS}) file(RELATIVE_PATH REL_FIL ${PROJECT_SOURCE_DIR} ${HDR}) get_filename_component(INSTALL_DIR ${REL_FIL} DIRECTORY) diff --git a/cartographer_rviz/CMakeLists.txt b/cartographer_rviz/CMakeLists.txt index 3a31222..84c73c9 100644 --- a/cartographer_rviz/CMakeLists.txt +++ b/cartographer_rviz/CMakeLists.txt @@ -42,7 +42,7 @@ catkin_package( INCLUDE_DIRS "." ) -file(GLOB_RECURSE ALL_SRCS "*.cc" "*.h") +file(GLOB_RECURSE ALL_SRCS "cartographer_rviz/*.cc" "cartographer_rviz/*.h") set(CMAKE_AUTOMOC ON) add_library(${PROJECT_NAME} ${ALL_SRCS}) target_link_libraries(${PROJECT_NAME} PUBLIC ${QT_LIBRARIES})