Skip to content
Snippets Groups Projects
Commit daf2f472 authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

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
...@@ -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}")
......
...@@ -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)
......
...@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment