Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
laser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
mobile_robotics
wolf_projects
wolf_lib
plugins
laser
Commits
be41a225
Commit
be41a225
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
small changes
parent
42e26728
No related branches found
No related tags found
2 merge requests
!30
Release after RAL
,
!29
After 2nd RAL submission
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+3
-8
3 additions, 8 deletions
CMakeLists.txt
with
3 additions
and
8 deletions
CMakeLists.txt
+
3
−
8
View file @
be41a225
# Pre-requisites about cmake itself
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.
6
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.
8
)
if
(
COMMAND cmake_policy
)
cmake_policy
(
SET CMP0005 NEW
)
...
...
@@ -12,6 +12,8 @@ SET(CMAKE_MACOSX_RPATH 1)
PROJECT
(
laser
)
set
(
PLUGIN_NAME wolf
${
PROJECT_NAME
}
)
MESSAGE
(
"Starting
${
PROJECT_NAME
}
CMakeLists ..."
)
SET
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/bin
)
SET
(
LIBRARY_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/lib
)
SET
(
CMAKE_INSTALL_PREFIX /usr/local
)
...
...
@@ -67,16 +69,11 @@ if(BUILD_TESTS)
enable_testing
()
endif
()
MESSAGE
(
"Starting
${
PROJECT_NAME
}
CMakeLists ..."
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
#CMAKE modules
SET
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
"
${
CMAKE_SOURCE_DIR
}
/cmake_modules"
)
MESSAGE
(
STATUS
${
CMAKE_MODULE_PATH
}
)
# Some wolf compilation options
IF
((
CMAKE_BUILD_TYPE MATCHES DEBUG
)
OR
(
CMAKE_BUILD_TYPE MATCHES debug
)
OR
(
CMAKE_BUILD_TYPE MATCHES Debug
))
set
(
_WOLF_DEBUG true
)
ENDIF
()
...
...
@@ -91,7 +88,6 @@ IF(BUILD_EXAMPLES OR BUILD_TESTS)
set
(
_WOLF_ROOT_DIR
${
CMAKE_SOURCE_DIR
}
)
ENDIF
(
BUILD_EXAMPLES OR BUILD_TESTS
)
#find dependencies.
# ============EXAMPLE==================
FIND_PACKAGE
(
wolfcore REQUIRED
)
...
...
@@ -223,7 +219,6 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# using GCC
endif
()
#Link the created libraries
#===============EXAMPLE=========================
TARGET_LINK_LIBRARIES
(
${
PLUGIN_NAME
}
${
wolfcore_LIBRARIES
}
)
...
...
This diff is collapsed.
Click to expand it.
Joan Vallvé Navarro
@joanvallve
mentioned in commit
3efa1b5b
·
3 years ago
mentioned in commit
3efa1b5b
mentioned in commit 3efa1b5b103b531fd5685dcd62038931a66b7b1c
Toggle commit list
Joan Vallvé Navarro
@joanvallve
mentioned in commit
9da1108b
·
3 years ago
mentioned in commit
9da1108b
mentioned in commit 9da1108b2969dca67aa49f323905b03dde33b9b1
Toggle commit list
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