-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1905dcc
Showing
60 changed files
with
13,493 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This is the contributors list of promp C++ library. | ||
# | ||
# This does not necessarily list everyone who has contributed code, | ||
# especially since many employees of one corporation may be contributing. | ||
# To see the full list of contributors, see the revision history in | ||
# source control. | ||
|
||
Ivan Bergonzani <ivan.bergonzani@inria.fr> | ||
Azevedo Gomes Junior Waldez | ||
Luigi Penco | ||
Vishnu Radhakrishnan | ||
Jean-Baptiste Mouret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Authors: Ivan Bergonzani, Vishnu Radhakrishnan, Waldez Gomes, Luigi Penco | ||
cmake_minimum_required(VERSION 3.11) | ||
|
||
include(GenerateExportHeader) | ||
include(CMakePackageConfigHelpers) | ||
|
||
set(PROJECTNAME promp) | ||
project(${PROJECTNAME}) | ||
|
||
set(promp_VERSION 1.0.0) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
option(BUILD_PYTHON_MODULE "build python module" OFF) | ||
|
||
#dependencies | ||
find_package(Eigen3 REQUIRED) | ||
|
||
set(SOURCE_FILES ${SOURCE_FILES} | ||
src/trajectory.cpp | ||
src/io/csv_reader.cpp | ||
src/io/serializer.cpp | ||
src/promp.cpp | ||
src/trajectory_group.cpp | ||
) | ||
|
||
|
||
# compile promp lib | ||
add_library(${PROJECTNAME} SHARED ${SOURCE_FILES}) | ||
|
||
target_include_directories(${PROJECTNAME} PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | ||
$<INSTALL_INTERFACE:include> | ||
) | ||
target_compile_features(${PROJECTNAME} PUBLIC cxx_std_17) | ||
target_link_libraries(${PROJECTNAME} PUBLIC Eigen3::Eigen) | ||
|
||
# Install promp library | ||
generate_export_header(${PROJECTNAME}) | ||
|
||
install(TARGETS ${PROJECTNAME} | ||
EXPORT targets | ||
LIBRARY DESTINATION lib | ||
ARCHIVE DESTINATION lib | ||
RUNTIME DESTINATION bin | ||
INCLUDES DESTINATION include | ||
) | ||
|
||
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include) | ||
|
||
configure_package_config_file("cmake/promp.cmake.in" | ||
"prompConfig.cmake" | ||
INSTALL_DESTINATION "lib/cmake/promp" | ||
) | ||
|
||
install(EXPORT targets | ||
FILE prompTargets.cmake | ||
NAMESPACE promp:: | ||
DESTINATION lib/cmake/promp | ||
) | ||
|
||
write_basic_package_version_file("${promp_BINARY_DIR}/prompConfigVersion.cmake" | ||
VERSION ${promp_VERSION} | ||
COMPATIBILITY AnyNewerVersion | ||
) | ||
|
||
install(FILES | ||
"${promp_BINARY_DIR}/prompConfig.cmake" | ||
"${promp_BINARY_DIR}/prompConfigVersion.cmake" | ||
DESTINATION | ||
lib/cmake/promp | ||
) | ||
|
||
# compile examples and generate documentation | ||
add_subdirectory(examples) | ||
add_subdirectory(doc) | ||
|
||
# googletests | ||
enable_testing() | ||
add_subdirectory(test) | ||
|
||
# create promp python module | ||
if(${BUILD_PYTHON_MODULE}) | ||
add_subdirectory(python) | ||
endif() | ||
|
||
|
Oops, something went wrong.