2026-08-12 14:48:18 +08:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
|
|
2026-08-18 12:26:28 +08:00
|
|
|
project(WoodCamUtils LANGUAGES C CXX)
|
2026-08-12 14:48:18 +08:00
|
|
|
|
|
|
|
|
option(WOODCAM_BUILD_CLOUDVIEW3D "Build the Qt/OpenGL CloudView3D utility" ON)
|
2026-08-18 12:26:28 +08:00
|
|
|
option(WOODCAM_BUILD_CLOUDUTILS "Build the CloudUtils static library" ON)
|
2026-08-12 14:48:18 +08:00
|
|
|
|
|
|
|
|
# VrCommon is a header-oriented compatibility module. Keep it as an interface
|
|
|
|
|
# target so consumers get the canonical VZNL_Types.h include path.
|
2026-08-18 12:26:28 +08:00
|
|
|
if(NOT TARGET VrCommon)
|
|
|
|
|
add_library(VrCommon INTERFACE)
|
|
|
|
|
target_include_directories(VrCommon INTERFACE
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/VrCommon/Inc
|
|
|
|
|
)
|
|
|
|
|
endif()
|
2026-08-12 14:48:18 +08:00
|
|
|
|
|
|
|
|
if(WOODCAM_BUILD_CLOUDVIEW3D)
|
|
|
|
|
add_subdirectory(CloudView3D)
|
|
|
|
|
endif()
|
2026-08-18 12:26:28 +08:00
|
|
|
|
|
|
|
|
if(WOODCAM_BUILD_CLOUDUTILS)
|
|
|
|
|
add_subdirectory(CloudUtils)
|
|
|
|
|
endif()
|