Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imu
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
imu
Commits
5ff6d3d7
Commit
5ff6d3d7
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
CMakeLists: UPPER_NAME always for config.h
parent
4872344d
No related branches found
No related tags found
2 merge requests
!39
release after RAL
,
!38
After 2nd RAL submission
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+9
-17
9 additions, 17 deletions
CMakeLists.txt
with
9 additions
and
17 deletions
CMakeLists.txt
+
9
−
17
View file @
5ff6d3d7
...
...
@@ -78,18 +78,13 @@ ENDIF()
option
(
_WOLF_TRACE
"Enable wolf tracing macro"
ON
)
# Does this has any other interest
# but for the examples ?
# yes, for the tests !
IF
(
BUILD_EXAMPLES OR BUILD_TESTS
)
string
(
TOUPPER
${
PROJECT_NAME
}
UPPER_NAME
)
set
(
_WOLF_ROOT_DIR
${
CMAKE_SOURCE_DIR
}
)
ENDIF
(
BUILD_EXAMPLES OR BUILD_TESTS
)
#find dependencies.
# ============EXAMPLE==================
# ============ DEPENDENCIES ============
FIND_PACKAGE
(
wolfcore REQUIRED
)
# ============ config.h ============
string
(
TOUPPER
${
PROJECT_NAME
}
UPPER_NAME
)
set
(
_WOLF_ROOT_DIR
${
CMAKE_SOURCE_DIR
}
)
# Define the directory where will be the configured config.h
SET
(
WOLF_CONFIG_DIR
${
PROJECT_BINARY_DIR
}
/conf/
${
PROJECT_NAME
}
/internal
)
...
...
@@ -107,12 +102,11 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/internal/config.h.in "${WOLF_CONFIG_D
message
(
"CONFIG DIRECTORY
${
PROJECT_BINARY_DIR
}
"
)
include_directories
(
"
${
PROJECT_BINARY_DIR
}
/conf"
)
#INCLUDES SECTION
# ============EXAMPLE==================
# ============ INCLUDES SECTION ============
INCLUDE_DIRECTORIES
(
${
wolfcore_INCLUDE_DIRS
}
)
INCLUDE_DIRECTORIES
(
BEFORE
"include"
)
#
HEADERS
#
============ HEADERS ============
SET
(
HDRS_CAPTURE
include/imu/capture/capture_compass.h
include/imu/capture/capture_imu.h
...
...
@@ -140,7 +134,7 @@ SET(HDRS_SENSOR
include/imu/sensor/sensor_imu2d.h
)
#
SOURCES
#
============ SOURCES ============
SET
(
SRCS_CAPTURE
src/capture/capture_imu.cpp
)
...
...
@@ -192,15 +186,13 @@ endif()
#Link the created libraries
TARGET_LINK_LIBRARIES
(
${
PLUGIN_NAME
}
${
wolfcore_LIBRARIES
}
)
#Build tests
#===============EXAMPLE=========================
#===============Build tests=========================
IF
(
BUILD_TESTS
)
MESSAGE
(
"Building tests."
)
add_subdirectory
(
test
)
ENDIF
(
BUILD_TESTS
)
#install library
INSTALL
(
TARGETS
${
PLUGIN_NAME
}
EXPORT
${
PLUGIN_NAME
}
Targets
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
...
...
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