Skip to content

Commit c8d57e6

Browse files
committed
reorganize files for proper finding headers downstream
1 parent 4a7441f commit c8d57e6

File tree

9 files changed

+34
-41
lines changed

9 files changed

+34
-41
lines changed

CMakeLists.txt

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,37 @@ find_package(mola_common REQUIRED)
88
include(CTest)
99
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
1010

11-
add_subdirectory(gtsam2mrpt_serial)
11+
# Find dependencies
12+
find_package(GTSAM REQUIRED)
13+
find_package(mrpt-serialization REQUIRED)
14+
find_package(mrpt-io REQUIRED)
15+
find_package(mrpt-math REQUIRED)
16+
find_package(mrpt-random REQUIRED)
17+
find_package(mrpt-poses REQUIRED)
18+
19+
# Define the library using MOLA macros
20+
mola_add_library(
21+
TARGET ${PROJECT_NAME}
22+
SOURCES
23+
src/serialize.cpp
24+
include/gtsam2mrpt_serial/serialize.h
25+
PUBLIC_LINK_LIBRARIES
26+
gtsam
27+
mrpt::serialization
28+
mrpt::io
29+
mrpt::math
30+
mrpt::random
31+
mrpt::poses
32+
CMAKE_DEPENDENCIES
33+
mola_common
34+
mrpt-serialization
35+
mrpt-io
36+
mrpt-math
37+
mrpt-random
38+
mrpt-poses
39+
)
40+
41+
# Define tests if enabled
42+
if(BUILD_TESTING)
43+
add_subdirectory(tests)
44+
endif()

gtsam2mrpt_serial/CMakeLists.txt

Lines changed: 0 additions & 40 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)