Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gnss
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
gnss
Commits
89066a44
Commit
89066a44
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
CMakeLists: UPPER_NAME always for config.h
parent
75e118ac
No related branches found
No related tags found
2 merge requests
!28
release after RAL
,
!27
After 2nd RAL submission
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+8
-14
8 additions, 14 deletions
CMakeLists.txt
with
8 additions
and
14 deletions
CMakeLists.txt
+
8
−
14
View file @
89066a44
...
@@ -78,19 +78,14 @@ ENDIF()
...
@@ -78,19 +78,14 @@ ENDIF()
option
(
_WOLF_TRACE
"Enable wolf tracing macro"
ON
)
option
(
_WOLF_TRACE
"Enable wolf tracing macro"
ON
)
# Does this has any other interest
# ============ DEPENDENCIES ============
# 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==================
FIND_PACKAGE
(
wolfcore REQUIRED
)
FIND_PACKAGE
(
wolfcore REQUIRED
)
FIND_PACKAGE
(
gnss_utils REQUIRED
)
FIND_PACKAGE
(
gnss_utils 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
# Define the directory where will be the configured config.h
SET
(
WOLF_CONFIG_DIR
${
PROJECT_BINARY_DIR
}
/conf/
${
PROJECT_NAME
}
/internal
)
SET
(
WOLF_CONFIG_DIR
${
PROJECT_BINARY_DIR
}
/conf/
${
PROJECT_NAME
}
/internal
)
...
@@ -108,13 +103,12 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/internal/config.h.in "${WOLF_CONFIG_D
...
@@ -108,13 +103,12 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/internal/config.h.in "${WOLF_CONFIG_D
message
(
"CONFIG DIRECTORY
${
PROJECT_BINARY_DIR
}
"
)
message
(
"CONFIG DIRECTORY
${
PROJECT_BINARY_DIR
}
"
)
include_directories
(
"
${
PROJECT_BINARY_DIR
}
/conf"
)
include_directories
(
"
${
PROJECT_BINARY_DIR
}
/conf"
)
#INCLUDES SECTION
# ============ INCLUDES ============
# ==============================
INCLUDE_DIRECTORIES
(
${
wolfcore_INCLUDE_DIRS
}
)
INCLUDE_DIRECTORIES
(
${
wolfcore_INCLUDE_DIRS
}
)
INCLUDE_DIRECTORIES
(
${
gnss_utils_INCLUDE_DIRS
}
)
INCLUDE_DIRECTORIES
(
${
gnss_utils_INCLUDE_DIRS
}
)
INCLUDE_DIRECTORIES
(
BEFORE
"include"
)
INCLUDE_DIRECTORIES
(
BEFORE
"include"
)
#
HEADERS
#
============ HEADERS ============
SET
(
HDRS_CAPTURE
SET
(
HDRS_CAPTURE
include/gnss/capture/capture_gnss.h
include/gnss/capture/capture_gnss.h
include/gnss/capture/capture_gnss_fix.h
include/gnss/capture/capture_gnss_fix.h
...
@@ -146,7 +140,7 @@ SET(HDRS_TREE_MANAGER
...
@@ -146,7 +140,7 @@ SET(HDRS_TREE_MANAGER
include/gnss/tree_manager/tree_manager_sliding_window_tdcp.h
include/gnss/tree_manager/tree_manager_sliding_window_tdcp.h
)
)
#
SOURCES
#
============ SOURCES ============
SET
(
SRCS_CAPTURE
SET
(
SRCS_CAPTURE
src/capture/capture_gnss.cpp
src/capture/capture_gnss.cpp
src/capture/capture_gnss_fix.cpp
src/capture/capture_gnss_fix.cpp
...
...
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