Skip to content

Commit

Permalink
initial import from inria's gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmouret committed Mar 8, 2022
0 parents commit 1905dcc
Show file tree
Hide file tree
Showing 60 changed files with 13,493 additions and 0 deletions.
12 changes: 12 additions & 0 deletions AUTHORS
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
86 changes: 86 additions & 0 deletions CMakeLists.txt
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()


Loading

0 comments on commit 1905dcc

Please sign in to comment.