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
9da1108b
Commit
9da1108b
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
Revert "small changes"
This reverts commit
be41a225
parent
be41a225
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
+8
-3
8 additions, 3 deletions
CMakeLists.txt
with
8 additions
and
3 deletions
CMakeLists.txt
+
8
−
3
View file @
9da1108b
# Pre-requisites about cmake itself
# Pre-requisites about cmake itself
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.
8
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.
6
)
if
(
COMMAND cmake_policy
)
if
(
COMMAND cmake_policy
)
cmake_policy
(
SET CMP0005 NEW
)
cmake_policy
(
SET CMP0005 NEW
)
...
@@ -12,8 +12,6 @@ SET(CMAKE_MACOSX_RPATH 1)
...
@@ -12,8 +12,6 @@ SET(CMAKE_MACOSX_RPATH 1)
PROJECT
(
laser
)
PROJECT
(
laser
)
set
(
PLUGIN_NAME wolf
${
PROJECT_NAME
}
)
set
(
PLUGIN_NAME wolf
${
PROJECT_NAME
}
)
MESSAGE
(
"Starting
${
PROJECT_NAME
}
CMakeLists ..."
)
SET
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/bin
)
SET
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/bin
)
SET
(
LIBRARY_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/lib
)
SET
(
LIBRARY_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/lib
)
SET
(
CMAKE_INSTALL_PREFIX /usr/local
)
SET
(
CMAKE_INSTALL_PREFIX /usr/local
)
...
@@ -69,11 +67,16 @@ if(BUILD_TESTS)
...
@@ -69,11 +67,16 @@ if(BUILD_TESTS)
enable_testing
()
enable_testing
()
endif
()
endif
()
MESSAGE
(
"Starting
${
PROJECT_NAME
}
CMakeLists ..."
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
#CMAKE modules
#CMAKE modules
SET
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
"
${
CMAKE_SOURCE_DIR
}
/cmake_modules"
)
SET
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
"
${
CMAKE_SOURCE_DIR
}
/cmake_modules"
)
MESSAGE
(
STATUS
${
CMAKE_MODULE_PATH
}
)
MESSAGE
(
STATUS
${
CMAKE_MODULE_PATH
}
)
# Some wolf compilation options
# Some wolf compilation options
IF
((
CMAKE_BUILD_TYPE MATCHES DEBUG
)
OR
(
CMAKE_BUILD_TYPE MATCHES debug
)
OR
(
CMAKE_BUILD_TYPE MATCHES Debug
))
IF
((
CMAKE_BUILD_TYPE MATCHES DEBUG
)
OR
(
CMAKE_BUILD_TYPE MATCHES debug
)
OR
(
CMAKE_BUILD_TYPE MATCHES Debug
))
set
(
_WOLF_DEBUG true
)
set
(
_WOLF_DEBUG true
)
ENDIF
()
ENDIF
()
...
@@ -88,6 +91,7 @@ IF(BUILD_EXAMPLES OR BUILD_TESTS)
...
@@ -88,6 +91,7 @@ IF(BUILD_EXAMPLES OR BUILD_TESTS)
set
(
_WOLF_ROOT_DIR
${
CMAKE_SOURCE_DIR
}
)
set
(
_WOLF_ROOT_DIR
${
CMAKE_SOURCE_DIR
}
)
ENDIF
(
BUILD_EXAMPLES OR BUILD_TESTS
)
ENDIF
(
BUILD_EXAMPLES OR BUILD_TESTS
)
#find dependencies.
#find dependencies.
# ============EXAMPLE==================
# ============EXAMPLE==================
FIND_PACKAGE
(
wolfcore REQUIRED
)
FIND_PACKAGE
(
wolfcore REQUIRED
)
...
@@ -219,6 +223,7 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
...
@@ -219,6 +223,7 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# using GCC
# using GCC
endif
()
endif
()
#Link the created libraries
#Link the created libraries
#===============EXAMPLE=========================
#===============EXAMPLE=========================
TARGET_LINK_LIBRARIES
(
${
PLUGIN_NAME
}
${
wolfcore_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
${
PLUGIN_NAME
}
${
wolfcore_LIBRARIES
}
)
...
...
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