Skip to content

Commit 1887869

Browse files
committed
WIP: testing submodules deps
1 parent caf9184 commit 1887869

File tree

4 files changed

+64
-11
lines changed

4 files changed

+64
-11
lines changed

.vscode/settings.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,25 @@
6767
"xstring": "cpp",
6868
"xtr1common": "cpp",
6969
"xtree": "cpp",
70-
"xutility": "cpp"
70+
"xutility": "cpp",
71+
"any": "cpp",
72+
"complex": "cpp",
73+
"condition_variable": "cpp",
74+
"csignal": "cpp",
75+
"cstdarg": "cpp",
76+
"deque": "cpp",
77+
"execution": "cpp",
78+
"fstream": "cpp",
79+
"future": "cpp",
80+
"mutex": "cpp",
81+
"numeric": "cpp",
82+
"queue": "cpp",
83+
"random": "cpp",
84+
"regex": "cpp",
85+
"set": "cpp",
86+
"span": "cpp",
87+
"stop_token": "cpp",
88+
"thread": "cpp",
89+
"variant": "cpp"
7190
}
7291
}

CMakeLists.txt

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@ set(CMAKE_CXX_STANDARD 17)
66
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
77
include(external_tools)
88

9-
10-
#--------------------------------------------------------------------------
11-
# options
12-
#--------------------------------------------------------------------------
13-
149
#--------------------------------------------------------------------------
1510
# library
1611
#--------------------------------------------------------------------------
1712

18-
1913
set(SHARED_LIB_NAME diffCheck)
2014

2115
file(GLOB_RECURSE SOURCES_LIB
@@ -42,6 +36,40 @@ target_include_directories(${SHARED_LIB_NAME}
4236

4337
target_precompile_headers(${SHARED_LIB_NAME} PUBLIC src/diffcheckpch.hh)
4438

39+
#--------------------------------------------------------------------------
40+
# 3rd party
41+
#--------------------------------------------------------------------------
42+
43+
# glew --------------------------------------------------------------
44+
45+
46+
47+
48+
49+
# fmt --------------------------------------------------------------
50+
set(FMT_LIB_PATH ${CMAKE_CURRENT_SOURCE_DIR}/deps/fmt/lib)
51+
set(FMT_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/deps/fmt/include)
52+
53+
target_link_libraries(${SHARED_LIB_NAME} PUBLIC ${FMT_LIB_PATH})
54+
target_link_libraries(${SHARED_LIB_NAME} INTERFACE ${FMT_LIB_PATH})
55+
target_include_directories(${SHARED_LIB_NAME} PUBLIC ${FMT_INCLUDE_PATH})
56+
target_include_directories(${SHARED_LIB_NAME} INTERFACE ${FMT_INCLUDE_PATH})
57+
58+
# Eigen --------------------------------------------------------------
59+
set(EIGEN_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/deps/eigen)
60+
target_include_directories(${SHARED_LIB_NAME} PUBLIC ${EIGEN_INCLUDE_PATH})
61+
target_include_directories(${SHARED_LIB_NAME} INTERFACE ${EIGEN_INCLUDE_PATH})
62+
63+
# Open3D --------------------------------------------------------------
64+
set(O3D_VERSION 0_17) # 0.17.0
65+
set(OPEN3D_SHAREDLIB_PATH ${CMAKE_CURRENT_SOURCE_DIR}/deps/open3d/win/${O3D_VERSION}/bin/Open3D)
66+
set(OPEN3D_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/deps/open3d/win/${O3D_VERSION}/include)
67+
68+
target_link_libraries(${SHARED_LIB_NAME} PUBLIC ${OPEN3D_SHAREDLIB_PATH})
69+
target_link_libraries(${SHARED_LIB_NAME} INTERFACE ${OPEN3D_SHAREDLIB_PATH})
70+
target_include_directories(${SHARED_LIB_NAME} PUBLIC ${OPEN3D_INCLUDE_PATH})
71+
target_include_directories(${SHARED_LIB_NAME} INTERFACE ${OPEN3D_INCLUDE_PATH})
72+
4573

4674
#--------------------------------------------------------------------------
4775
# executable
@@ -61,10 +89,6 @@ target_include_directories(${APP_NAME_EXE}
6189
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src
6290
)
6391

64-
#--------------------------------------------------------------------------
65-
# Pre-compiled headers
66-
#--------------------------------------------------------------------------
67-
6892
#--------------------------------------------------------------------------
6993
# Tests
7094
#--------------------------------------------------------------------------

src/diffCheck.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include "diffCheck.hh" // This is a dummy include to test the include path
4+
#include <open3d/Open3D.h>
45

56
#include <string>
67
#include <iostream>
@@ -11,4 +12,10 @@ namespace diffCheck {
1112
int func2() { diffCheck::testHeaderCheck2(); return 2;}
1213
int func3() { diffCheck::testHeaderCheck3(); return 3;}
1314

15+
void testOpen3d()
16+
{
17+
std::shared_ptr<open3d::geometry::PointCloud> cloud(new open3d::geometry::PointCloud());
18+
std::cout << "testOpen3d check." << std::endl;
19+
}
20+
1421
} // namespace diffCheck

src/diffCheck.hh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ namespace diffCheck {
1313
/// @brief Function 3 of the library
1414
int func3();
1515

16+
/// @brief Testing open3d import
17+
void testOpen3d();
18+
1619
} // namespace diffCheck

0 commit comments

Comments
 (0)