Skip to content

Commit b49d5e9

Browse files
export symbols on win
1 parent e495e87 commit b49d5e9

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

patch/ros-humble-imu-calib.patch

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index 0115283..c036ddc 100644
2+
index 0115283..e52a656 100644
33
--- a/CMakeLists.txt
44
+++ b/CMakeLists.txt
55
@@ -20,18 +20,6 @@ find_package(eigen3_cmake_module REQUIRED)
@@ -21,7 +21,16 @@ index 0115283..c036ddc 100644
2121
# === Build shared library from core components ===
2222
add_library(imu_calib_lib
2323
src/apply_calib.cpp
24-
@@ -44,20 +32,23 @@ target_include_directories(imu_calib_lib PUBLIC
24+
@@ -39,25 +27,32 @@ add_library(imu_calib_lib
25+
src/do_calib.cpp
26+
)
27+
28+
+set_target_properties(imu_calib_lib PROPERTIES
29+
+ WINDOWS_EXPORT_ALL_SYMBOLS ON
30+
+)
31+
+
32+
target_include_directories(imu_calib_lib PUBLIC
33+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
2534
$<INSTALL_INTERFACE:include>
2635
)
2736

0 commit comments

Comments
 (0)