Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
daf2f472
Commit
daf2f472
authored
6 years ago
by
Joaquim Casals Buñuel
Browse files
Options
Downloads
Patches
Plain Diff
Fixed wolfConfig and path of config.h
parent
7e6b25a1
No related branches found
No related tags found
No related merge requests found
Pipeline
#3091
passed
6 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+3
-2
3 additions, 2 deletions
CMakeLists.txt
cmake_modules/wolfConfig.cmake
+4
-4
4 additions, 4 deletions
cmake_modules/wolfConfig.cmake
include/core/common/wolf.h
+1
-1
1 addition, 1 deletion
include/core/common/wolf.h
with
8 additions
and
7 deletions
CMakeLists.txt
+
3
−
2
View file @
daf2f472
...
@@ -169,7 +169,7 @@ ELSE (Suitesparse_INCLUDE_DIRS)
...
@@ -169,7 +169,7 @@ ELSE (Suitesparse_INCLUDE_DIRS)
ENDIF
(
Suitesparse_INCLUDE_DIRS
)
ENDIF
(
Suitesparse_INCLUDE_DIRS
)
# 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/internal
)
SET
(
WOLF_CONFIG_DIR
${
PROJECT_BINARY_DIR
}
/conf/
core/
internal
)
# Create the specified output directory if it does not exist.
# Create the specified output directory if it does not exist.
IF
(
NOT EXISTS
"
${
WOLF_CONFIG_DIR
}
"
)
IF
(
NOT EXISTS
"
${
WOLF_CONFIG_DIR
}
"
)
...
@@ -182,6 +182,7 @@ IF(EXISTS "${WOLF_CONFIG_DIR}" AND NOT IS_DIRECTORY "${WOLF_CONFIG_DIR}")
...
@@ -182,6 +182,7 @@ IF(EXISTS "${WOLF_CONFIG_DIR}" AND NOT IS_DIRECTORY "${WOLF_CONFIG_DIR}")
ENDIF
()
ENDIF
()
# Configure config.h
# Configure config.h
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/internal/config.h.in
"
${
WOLF_CONFIG_DIR
}
/config.h"
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/internal/config.h.in
"
${
WOLF_CONFIG_DIR
}
/config.h"
)
message
(
"WOLF CONFIG
${
WOLF_CONFIG_DIR
}
/config.h"
)
message
(
"CONFIG DIRECTORY
${
PROJECT_BINARY_DIR
}
"
)
message
(
"CONFIG DIRECTORY
${
PROJECT_BINARY_DIR
}
"
)
include_directories
(
"
${
PROJECT_BINARY_DIR
}
/conf"
)
include_directories
(
"
${
PROJECT_BINARY_DIR
}
/conf"
)
# include spdlog (logging library)
# include spdlog (logging library)
...
@@ -616,7 +617,7 @@ configure_file("${CMAKE_SOURCE_DIR}/cmake_modules/wolfConfig.cmake"
...
@@ -616,7 +617,7 @@ configure_file("${CMAKE_SOURCE_DIR}/cmake_modules/wolfConfig.cmake"
"
${
CMAKE_BINARY_DIR
}
/wolfConfig.cmake"
@ONLY
)
"
${
CMAKE_BINARY_DIR
}
/wolfConfig.cmake"
@ONLY
)
INSTALL
(
FILES
"
${
WOLF_CONFIG_DIR
}
/config.h"
INSTALL
(
FILES
"
${
WOLF_CONFIG_DIR
}
/config.h"
DESTINATION include/iri-algorithms/wolf/internal
)
DESTINATION include/iri-algorithms/wolf/
plugin_core/core/
internal
)
INSTALL
(
FILES
"
${
CMAKE_BINARY_DIR
}
/wolfConfig.cmake"
DESTINATION
"lib/cmake/
${
PROJECT_NAME
}
"
)
INSTALL
(
FILES
"
${
CMAKE_BINARY_DIR
}
/wolfConfig.cmake"
DESTINATION
"lib/cmake/
${
PROJECT_NAME
}
"
)
...
...
This diff is collapsed.
Click to expand it.
cmake_modules/wolfConfig.cmake
+
4
−
4
View file @
daf2f472
...
@@ -130,8 +130,8 @@ endif (NOT EXISTS ${CURRENT_ROOT_INSTALL_DIR})
...
@@ -130,8 +130,8 @@ endif (NOT EXISTS ${CURRENT_ROOT_INSTALL_DIR})
# Set the include directories for wolf (itself).
# Set the include directories for wolf (itself).
set
(
wolf_INCLUDE_DIR
"
${
CURRENT_ROOT_INSTALL_DIR
}
/include/iri-algorithms"
)
set
(
wolf_INCLUDE_DIR
"
${
CURRENT_ROOT_INSTALL_DIR
}
/include/iri-algorithms"
)
# if (NOT EXISTS ${wolf_INCLUDE_DIR}/wolf/wolf.h)
#
# if (NOT EXISTS ${wolf_INCLUDE_DIR}/wolf/wolf.h)
if
(
NOT EXISTS
${
wolf_INCLUDE_DIR
}
/wolf
)
if
(
NOT EXISTS
${
wolf_INCLUDE_DIR
}
/wolf
/plugin_core
)
wolf_report_not_found
(
wolf_report_not_found
(
"wolf install root:
${
CURRENT_ROOT_INSTALL_DIR
}
, "
"wolf install root:
${
CURRENT_ROOT_INSTALL_DIR
}
, "
"determined from relative path from wolfConfig.cmake install location: "
"determined from relative path from wolfConfig.cmake install location: "
...
@@ -139,8 +139,8 @@ if (NOT EXISTS ${wolf_INCLUDE_DIR}/wolf)
...
@@ -139,8 +139,8 @@ if (NOT EXISTS ${wolf_INCLUDE_DIR}/wolf)
"Either the install directory was deleted, or the install tree was only "
"Either the install directory was deleted, or the install tree was only "
"partially relocated outside of CMake after wolf was built."
)
"partially relocated outside of CMake after wolf was built."
)
# endif (NOT EXISTS ${wolf_INCLUDE_DIR}/wolf/wolf.h)
# endif (NOT EXISTS ${wolf_INCLUDE_DIR}/wolf/wolf.h)
endif
(
NOT EXISTS
${
wolf_INCLUDE_DIR
}
/wolf
)
endif
(
NOT EXISTS
${
wolf_INCLUDE_DIR
}
/wolf
/plugin_core
)
list
(
APPEND wolf_INCLUDE_DIRS
${
wolf_INCLUDE_DIR
}
/wolf
)
list
(
APPEND wolf_INCLUDE_DIRS
${
wolf_INCLUDE_DIR
}
/wolf
/plugin_core
)
# Set the version.
# Set the version.
set
(
wolf_VERSION 0.0.1
)
set
(
wolf_VERSION 0.0.1
)
...
...
This diff is collapsed.
Click to expand it.
include/core/common/wolf.h
+
1
−
1
View file @
daf2f472
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#define WOLF_H_
#define WOLF_H_
// Enable project-specific definitions and macros
// Enable project-specific definitions and macros
#include
"internal/config.h"
#include
"
core/
internal/config.h"
#include
"core/utils/logging.h"
#include
"core/utils/logging.h"
#include
"core/utils/params_server.hpp"
#include
"core/utils/params_server.hpp"
...
...
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