File tree 3 files changed +14
-6
lines changed
3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.11)
2
- project (patchworkpp VERSION 1.0.0 )
2
+ project (patchworkpp VERSION 1.0.1 )
3
3
4
4
set (CMAKE_CXX_STANDARD 20)
5
5
set (PYTHON_EXECUTABLE python3)
6
6
set (CMAKE_BUILD_TYPE Release)
7
+ set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
7
8
8
9
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${Open3D_C_FLAGS} " )
9
10
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Open3D_CXX_FLAGS} " )
@@ -58,5 +59,4 @@ if (INCLUDE_CPP_EXAMPLES)
58
59
target_link_libraries (demo_sequential PRIVATE ${PARENT_PROJECT_NAME} ::${TARGET_NAME} ${Open3D_LIBRARIES} "stdc++fs" )
59
60
target_include_directories (demo_sequential PUBLIC ${Open3D_INCLUDE_DIRS} )
60
61
set_target_properties (demo_sequential PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /examples" )
61
-
62
- endif ()
62
+ endif ()
Original file line number Diff line number Diff line change @@ -15,14 +15,22 @@ set(TARGET_NAME ground_seg_cores)
15
15
find_package (Python COMPONENTS Interpreter Development.Module REQUIRED)
16
16
find_package (pybind11 CONFIG REQUIRED)
17
17
18
+ # See our `pyproject.toml` file. We use `scikit_build_core`, which turns on `SKBUILD`
19
+ if (DEFINED SKBUILD)
20
+ message (STATUS "Building with Scikit-Build" )
21
+ endif ()
22
+
18
23
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /../cpp/)
19
24
add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /../cpp ${CMAKE_CURRENT_BINARY_DIR} /patchworkpp_cpp)
20
25
else ()
21
26
cmake_minimum_required (VERSION 3.18)
22
27
message (STATUS "Performing out-of-tree build, fetching Patchwork++ v${CMAKE_PROJECT_VERSION} Release from Github" )
23
28
include (FetchContent)
24
- # Currently, out-of-source build is not supported.
25
- # But, it will be updated soon!
29
+ FetchContent_Declare(
30
+ ext_ground_seg_cores PREFIX ${PARENT_PROJECT_NAME}
31
+ URL https://github.com/url-kaist/patchwork-plusplus/archive/refs/tags/v${CMAKE_PROJECT_VERSION} .tar.gz SOURCE_SUBDIR
32
+ cpp/patchworkpp)
33
+ FetchContent_MakeAvailable(ext_ground_seg_cores)
26
34
endif ()
27
35
28
36
pybind11_add_module(pypatchworkpp patchworkpp/pybinding.cpp)
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
4
4
5
5
[project ]
6
6
name = " pypatchworkpp"
7
- version = " 0. 1.0"
7
+ version = " 1.0.1 "
8
8
requires-python = " >=3.8"
9
9
description = " ground segmentation"
10
10
dependencies = [
You can’t perform that action at this time.
0 commit comments