This repo was made to cleanup the compilation process of Enrico Bertolazzi Clothoids.
This repository uses git submodules to keep always a stable version.
git clone --recurse-submodules https://github.com/Pippo98/clothoidscmake -B build
cmake --build build
If you want to integrate the clothoids in your CMake project, you should add this repository as submodule in your project to make it available to CMake, then:
# ...
add_subdirectory(external/clothiods) # this is the case if this repo is placed in the "external" subdirectory
target_link_libraries(
my_executable_or_library
PUBLIC
clothoids # this is the name of the library compiled in this repository
)By default this project compiles a static library, however if you want to change the library type you can set the SET_CLOTHOID_LIB_TYPE variable in two ways:
- From command line:
cmake -B build -DSET_CLOTHOID_LIB_TYPE=SHARED - Directly in cmake by adding
set(SET_CLOTHOID_LIB_TYPE SHARED)before the lineadd_subdirectory.