Skip to content

Commit 5dea8e4

Browse files
committed
add win patch
Signed-off-by: wep21 <[email protected]>
1 parent 86ba50a commit 5dea8e4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index e07dcf4..8d23997 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -23,13 +23,21 @@ find_package(pcl_conversions REQUIRED)
6+
find_package(tf2_eigen REQUIRED)
7+
8+
# ==== Options ====
9+
-add_compile_options(-Wall -Wextra)
10+
+if(MSVC)
11+
+ add_compile_options(/W2)
12+
+ add_compile_definitions(NOMINMAX _USE_MATH_DEFINES WIN32_LEAN_AND_MEAN)
13+
+else()
14+
+ add_compile_options(-Wall -Wextra)
15+
+endif()
16+
+
17+
if(NOT DEFINED CMAKE_CXX_STANDARD)
18+
set(CMAKE_CXX_STANDARD 17)
19+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
20+
endif()
21+
option(CMAKE_POSITION_INDEPENDENT_CODE "Build position independent code." ON)
22+
23+
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
24+
+
25+
set(_ouster_ros_INCLUDE_DIRS
26+
include
27+
ouster-sdk/ouster_client/include

0 commit comments

Comments
 (0)