datoviz 源码准备好了

This commit is contained in:
2026-08-13 23:46:10 +08:00
parent aea74a219b
commit 47c649bdf3
70 changed files with 262 additions and 13 deletions
+24 -6
View File
@@ -1,12 +1,30 @@
include_guard(GLOBAL)
rcl_get_effective_install_dir(render_3D::PThreads4W PTHREADS4W_ROOT)
message("render_3D::PThreads4W PTHREADS4W_ROOT=${PTHREADS4W_ROOT}")
set(PThreads4W_INCLUDE_DIR "${PTHREADS4W_ROOT}/include")
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(PThreads4W_LIBRARY "${PTHREADS4W_ROOT}/lib/pthreadVC3d.lib")
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(AMD64|amd64|x86_64)$")
set(PThreads4W_ARCH "x86_64")
elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^(ARM64|arm64|aarch64)$")
set(PThreads4W_ARCH "ARM64")
elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86|i[3-6]86)$")
set(PThreads4W_ARCH "x86")
else ()
set(PThreads4W_LIBRARY "${PTHREADS4W_ROOT}/lib/pthreadVC3.lib")
set(PThreads4W_ARCH "${CMAKE_SYSTEM_PROCESSOR}")
endif ()
set(PThreads4W_INSTALL_DIR "${PTHREADS4W_ROOT}/${PThreads4W_ARCH}/${CMAKE_BUILD_TYPE}")
find_path(PThreads4W_INCLUDE_DIR
NAMES pthread.h
PATHS "${PThreads4W_INSTALL_DIR}/include"
NO_DEFAULT_PATH
)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(PThreads4W_LIBRARY_NAME pthreadVC3d)
else ()
set(PThreads4W_LIBRARY_NAME pthreadVC3)
endif ()
find_library(PThreads4W_LIBRARY
NAMES "${PThreads4W_LIBRARY_NAME}"
PATHS "${PThreads4W_INSTALL_DIR}/lib"
NO_DEFAULT_PATH
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(PThreads4W
REQUIRED_VARS
@@ -23,4 +41,4 @@ endif ()
mark_as_advanced(
PThreads4W_INCLUDE_DIR
PThreads4W_LIBRARY
)
)