Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LidarView
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LidarView
LidarView
Commits
f91690a5
Commit
f91690a5
authored
1 year ago
by
Timothée Couble
Browse files
Options
Downloads
Patches
Plain Diff
[refact] Use new LVCore CMake scripts
parent
31df646f
No related branches found
Branches containing commit
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMake/SetBranding.cmake
+2
-1
2 additions, 1 deletion
CMake/SetBranding.cmake
CMakeLists.txt
+21
-17
21 additions, 17 deletions
CMakeLists.txt
with
23 additions
and
18 deletions
CMake/SetBranding.cmake
+
2
−
1
View file @
f91690a5
# Every Brand related names / resource paths should be declared here
# Software Name / Vendor
set
(
SOFTWARE_NAME
"LidarView"
)
set
(
SOFTWARE_NAME
"LidarView"
)
set
(
SOFTWARE_VENDOR
"Kitware"
)
set
(
SOFTWARE_TARGET
"LidarView::LidarView"
)
# Software LOGO / ICON # Must be absolute to be used by packaging
set
(
SOFTWARE_ICON_PATH
"
${
CMAKE_CURRENT_LIST_DIR
}
/SoftwareInformation/logo.ico"
)
...
...
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
21
−
17
View file @
f91690a5
cmake_minimum_required
(
VERSION 3.20.3 FATAL_ERROR
)
project
(
LidarView
)
#Thanks to ExternalProject CMAKE_SOURCE_DIR will correctly be the same as this PROJECT_SOURCE_DIR
# add path to get all the needed modules used to config Lidarview
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
"
${
CMAKE_SOURCE_DIR
}
/LVCore/CMake"
)
# Add path to get all the needed modules used to config Lidarview
set
(
lidarview_cmake_dir
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/CMake"
)
set
(
lvcore_cmake_dir
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/LVCore/CMake"
)
if
(
NOT IS_DIRECTORY
"
${
lvcore_cmake_dir
}
"
)
message
(
FATAL_ERROR
"Failed to find the LVCore CMake directory. Did you forget to initialize the "
"submodule? (git submodule update --init --recursive)"
)
endif
()
list
(
APPEND CMAKE_MODULE_PATH
"
${
lidarview_cmake_dir
}
"
"
${
lvcore_cmake_dir
}
"
)
# Include branding.cmake
include
(
Application/branding.cmake
)
include
(
SetBranding
)
include
(
LidarViewSupportMacros
)
include
(
LidarViewOptions
)
# we include the module that allow us to configure the Lidarview project
include
(
SetupLidarviewProject
)
#
custom code here
if
(
LIDARVIEW_BUILD_VELODYNE
)
add_subdirectory
(
Plugins/
VelodynePlugin
)
endif
(
)
if
(
LIDARVIEW_BUILD_HESAI
)
add_subdirectory
(
Plugins/HesaiPlugin
)
endif
(
)
#
Add plugins to be searched by default in LVCore CMakeLists.txt
set
(
lidarview_default_plugins
VelodynePlugin
HesaiPlugin
)
set
(
lidarview_plugin_directories
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/Plugins"
)
add_subdirectory
(
LVCore
)
# Application
add_subdirectory
(
Application
)
# Must be invoked Last
include
(
FinalizeLidarViewProject
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment