ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
CloudViewerConfig.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #include "CloudViewerConfig.h"
9 
10 #include <Logging.h>
11 
12 namespace cloudViewer {
13 
15  utility::LogInfo("CloudViewer {}", CLOUDVIEWER_VERSION);
16 }
17 
18 std::string GetCloudViewerVersion() { return std::string(CLOUDVIEWER_VERSION); }
19 
20 std::string GetBuildInfo() {
21 #ifdef CUDA_ENABLED
22  const std::string cuda_info = "with CUDA";
23 #else
24  const std::string cuda_info = "without CUDA";
25 #endif
26  return "Commit " + CLOUDVIEWER_GIT_COMMIT_ID + " on " +
27  CLOUDVIEWER_GIT_COMMIT_DATE + " " + cuda_info;
28 }
29 
30 std::string GetCloudViewerBuildInfo() {
31  return "CloudViewer " + GetCloudViewerVersion() + " " + GetBuildInfo();
32 }
33 
34 } // namespace cloudViewer
#define CLOUDVIEWER_VERSION
#define LogInfo(...)
Definition: Logging.h:81
Generic file read and write utility for python interface.
std::string GetCloudViewerVersion()
static const std::string CLOUDVIEWER_GIT_COMMIT_DATE
std::string GetCloudViewerBuildInfo()
void PrintCloudViewerVersion()
static const std::string CLOUDVIEWER_GIT_COMMIT_ID
std::string GetBuildInfo()