Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cmake-linux-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_WITH_BUNDLED_FREEGLUT=0 -DBUILD_WITH_BUNDLED_EIGEN=0 -DBUILD_WITH_BUNDLED_LIBLASZIP=0 -DBUILD_TESTING=ON
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_WITH_UTILITY_APPLICATION=ON -DBUILD_WITH_BUNDLED_FREEGLUT=0 -DBUILD_WITH_BUNDLED_EIGEN=0 -DBUILD_WITH_BUNDLED_LIBLASZIP=0 -DBUILD_TESTING=ON

- name: Build
# Build your program with the given configuration
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cmake-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTING=ON
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_WITH_UTILITY_APPLICATION=ON -DBUILD_TESTING=ON

- name: Build
# Build your program with the given configuration
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
run: |
cmake -B ${{github.workspace}}/build \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DBUILD_WITH_UTILITY_APPLICATION=ON \
-DFREEGLUT_COCOA=ON \
-DHD_CPU_OPTIMIZATION=AUTO \
-DBUILD_TESTING=ON
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python-bindings-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
run: |
cmake -B ${{github.workspace}}/build_pybind \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DBUILD_WITH_UTILITY_APPLICATION=ON \
-DBUILD_WITH_PYBIND=ON

- name: Build Python bindings
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python-bindings-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
run: |
cmake -B ${{github.workspace}}/build_pybind `
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} `
-DBUILD_WITH_UTILITY_APPLICATION=ON `
-DBUILD_WITH_PYBIND=ON `
shell: pwsh

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTING=ON
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_WITH_UTILITY_APPLICATION=ON -DBUILD_TESTING=ON

- name: Build
# Build your program with the given configuration
Expand Down
35 changes: 20 additions & 15 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ set(HD_CPU_OPTIMIZATION "AUTO" CACHE STRING "CPU optimization target (AUTO, INTE
set_property(CACHE HD_CPU_OPTIMIZATION PROPERTY STRINGS AUTO INTEL AMD ARM GENERIC)

# Options to enable / disable specific components
option(BUILD_WITH_CLI_TOOLS "Build with command line tools" ON)
option(BUILD_WITH_CLI_TOOLS "Build with command line tools" OFF)
option(BUILD_WITH_HD_MAPPER_APPLICATION "Build with hd_mapper tool" OFF)
option(BUILD_WITH_UTILITY_APPLICATION "Enable build of utility applications" OFF)

# Three-way profiler backend: NONE (zero overhead) | UTL (lightweight) | TRACY (full profiler)
set(HDMAPPING_PROFILER "NONE" CACHE STRING "Profiler backend: NONE | UTL | TRACY")
Expand Down Expand Up @@ -127,23 +128,27 @@ if(BUILD_WITH_HD_MAPPER_APPLICATION)
add_subdirectory(apps/hd_mapper)
endif()

# Applications for typical workflow - see images/workflow.png
add_subdirectory(apps/mandeye_raw_data_viewer)
add_subdirectory(apps/lidar_odometry_step_1)
add_subdirectory(apps/manual_color)
add_subdirectory(apps/multi_session_registration)
add_subdirectory(apps/mandeye_single_session_viewer)
add_subdirectory(apps/multi_view_tls_registration)
add_subdirectory(apps/multi_view_tls_registration_legacy)
add_subdirectory(apps/split_multi_livox)
add_subdirectory(apps/precision_forestry_tools)
add_subdirectory(apps/mandeye_raw_data_viewer)
add_subdirectory(apps/compare_trajectories)
add_subdirectory(apps/mandeye_mission_recorder_calibration)
add_subdirectory(apps/mandeye_single_session_viewer)
add_subdirectory(apps/livox_mid_360_intrinsic_calibration)
add_subdirectory(apps/single_session_manual_coloring)
add_subdirectory(apps/concatenate_multi_livox)
add_subdirectory(apps/camera_lidar_calibration)
add_subdirectory(apps/camera_lidar_trajectory_viewer)
add_subdirectory(apps/camera_lidar_intrinsics_calib)
add_subdirectory(apps/multi_session_registration)

if(BUILD_WITH_UTILITY_APPLICATION)
add_subdirectory(apps/manual_color)
add_subdirectory(apps/split_multi_livox)
add_subdirectory(apps/precision_forestry_tools)
add_subdirectory(apps/compare_trajectories)
add_subdirectory(apps/mandeye_mission_recorder_calibration)
add_subdirectory(apps/livox_mid_360_intrinsic_calibration)
add_subdirectory(apps/single_session_manual_coloring)
add_subdirectory(apps/concatenate_multi_livox)
add_subdirectory(apps/camera_lidar_calibration)
add_subdirectory(apps/camera_lidar_trajectory_viewer)
add_subdirectory(apps/camera_lidar_intrinsics_calib)
endif()

# NOTE(mwlasiuk) : disable warnings for third party libraries so they do not pollute build logs

Expand Down
24 changes: 14 additions & 10 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,25 @@ function(add_core_target target_name with_gui)
endif()
endfunction()

add_core_target(core_no_gui FALSE)
# core_no_gui is used by python bindings and lidar odometry test subprojects only - if they are not build just do not waste time building core_no_gui
if(BUILD_TESTING OR BUILD_WITH_PYBIND)
add_core_target(core_no_gui FALSE)

target_precompile_headers(core_no_gui
PRIVATE include/pch/pch.h
)

set_target_properties(core_no_gui PROPERTIES
POSITION_INDEPENDENT_CODE ON)
endif()

add_core_target(core TRUE)
target_link_libraries(core PUBLIC core_pfd)

target_precompile_headers(core_no_gui
PRIVATE include/pch/pch.h
)

target_precompile_headers(core_no_gui
PRIVATE include/pch/pch.h
target_precompile_headers(core
PRIVATE include/pch/pch.h
)

set_target_properties(core_no_gui PROPERTIES
POSITION_INDEPENDENT_CODE ON)

# ============================================================================
# core_raylib -- shared raylib rendering/camera/picking infrastructure
# (ScanRenderer, OrbitCamera, picking, the compass overlay), used by
Expand Down
2 changes: 1 addition & 1 deletion deploy_mandeye.bat
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ echo.
if not exist "%BUILD_DIR%\mandeye_raw_data_viewer.exe" (
echo ERROR: %BUILD_DIR% does not look like a built output folder.
echo Build the project first, e.g.:
echo cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
echo cmake -B build -DBUILD_WITH_UTILITY_APPLICATION=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
echo cmake --build build --config RelWithDebInfo
exit /b 1
)
Expand Down
Loading