Skip to content
Snippets Groups Projects
Commit 569d0087 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Modified the CMakeFile.txt to include the external repository for the rapidcsv...

Modified the CMakeFile.txt to include the external repository for the rapidcsv library and install the necessary files.
parent 0f57a15b
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,18 @@ SET(headers ../include/kf_based_terrain_analysis.h
../include/structs_definitions.h
../include/time_supervisor.h
../include/observation_downsampler.h
../include/shallow_neural_net.h)
../include/shallow_neural_net.h
${CMAKE_CURRENT_LIST_DIR}/../rapidcsv/src/rapidcsv.h)
include(FetchContent)
FetchContent_Declare(rapidcsv
GIT_REPOSITORY "https://github.com/d99kris/rapidcsv.git"
GIT_TAG "origin/master"
SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/../rapidcsv"
)
FetchContent_MakeAvailable(rapidcsv)
# locate the necessary dependencies
FIND_PACKAGE(catkin REQUIRED COMPONENTS roscpp)
FIND_PACKAGE(PCL REQUIRED COMPONENTS common)
......@@ -19,6 +29,7 @@ FIND_PACKAGE(PCL REQUIRED COMPONENTS common)
INCLUDE_DIRECTORIES(../include)
INCLUDE_DIRECTORIES(${PCL_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${catkin_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_LIST_DIR}/../rapidcsv/src)
# create the shared library
ADD_LIBRARY(${PROJECT_NAME} SHARED ${sources})
......
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