Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-statistics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Humanoid Path Planner
hpp-statistics
Commits
d6aabef1
Commit
d6aabef1
authored
2 years ago
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
pre-commit run -a
parent
4fcd80af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+40
-44
40 additions, 44 deletions
CMakeLists.txt
tests/CMakeLists.txt
+18
-20
18 additions, 20 deletions
tests/CMakeLists.txt
with
58 additions
and
64 deletions
CMakeLists.txt
+
40
−
44
View file @
d6aabef1
#
#
# Copyright (c) 2014, 2020 CNRS
# Copyright (c) 2014, 2020 CNRS Authors: Joseph Mirabel, Guilhem Saurel
# Authors: Joseph Mirabel, Guilhem Saurel
#
#
# This file is part of hpp-statistics hpp-statistics is free software: you can
# redistribute it and/or modify it under the terms of the GNU Lesser General
# Public License as published by the Free Software Foundation, either version 3
# of the License, or (at your option) any later version.
#
#
# This file is part of hpp-statistics
# hpp-statistics is distributed in the hope that it will be useful, but WITHOUT
# hpp-statistics is free software: you can redistribute it
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# and/or modify it under the terms of the GNU Lesser General Public
# FOR A PARTICULAR PURPOSE. See the GNU General Lesser Public License for more
# License as published by the Free Software Foundation, either version
# details. You should have received a copy of the GNU Lesser General Public
# 3 of the License, or (at your option) any later version.
# License along with hpp-statistics If not, see <http://www.gnu.org/licenses/>.
#
# hpp-statistics is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Lesser Public License for more details. You should have
# received a copy of the GNU Lesser General Public License along with
# hpp-statistics If not, see
# <http://www.gnu.org/licenses/>.
CMAKE_MINIMUM_REQUIRED
(
VERSION 3.1
)
cmake_minimum_required
(
VERSION 3.1
)
SET
(
PROJECT_NAME hpp-statistics
)
set
(
PROJECT_NAME hpp-statistics
)
SET
(
PROJECT_DESCRIPTION
"Classes for doing statistics."
)
set
(
PROJECT_DESCRIPTION
"Classes for doing statistics."
)
SET
(
PROJECT_USE_CMAKE_EXPORT TRUE
)
set
(
PROJECT_USE_CMAKE_EXPORT TRUE
)
INCLUDE
(
cmake/hpp.cmake
)
include
(
cmake/hpp.cmake
)
COMPUTE_PROJECT_ARGS
(
PROJECT_ARGS LANGUAGES CXX
)
compute_project_args
(
PROJECT_ARGS LANGUAGES CXX
)
PROJECT
(
${
PROJECT_NAME
}
${
PROJECT_ARGS
}
)
project
(
${
PROJECT_NAME
}
${
PROJECT_ARGS
}
)
# Activate hpp-util logging if requested
# Activate hpp-util logging if requested
SET
(
HPP_DEBUG FALSE CACHE BOOL
"trigger hpp-util debug output"
)
set
(
HPP_DEBUG
IF
(
HPP_DEBUG
)
FALSE
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DHPP_DEBUG"
)
CACHE BOOL
"trigger hpp-util debug output"
)
ENDIF
()
if
(
HPP_DEBUG
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DHPP_DEBUG"
)
endif
()
ADD_PROJECT_DEPENDENCY
(
hpp-util REQUIRED
)
add_project_dependency
(
hpp-util REQUIRED
)
SET
(
${
PROJECT_NAME
}
_HEADERS
set
(
${
PROJECT_NAME
}
_HEADERS
include/hpp/statistics/fwd.hh
include/hpp/statistics/fwd.hh include/hpp/statistics/bin.hh
include/hpp/statistics/bin.hh
include/hpp/statistics/success-bin.hh
include/hpp/statistics/success-bin.hh
include/hpp/statistics/distribution.hh
)
include/hpp/statistics/distribution.hh
)
SET
(
${
PROJECT_NAME
}
_SOURCES
set
(
${
PROJECT_NAME
}
_SOURCES src/success-bin.cc
)
src/success-bin.cc
)
ADD_LIBRARY
(
${
PROJECT_NAME
}
SHARED
add_library
(
${
PROJECT_NAME
}
SHARED
${${
PROJECT_NAME
}
_SOURCES
}
${${
PROJECT_NAME
}
_SOURCES
}
${${
PROJECT_NAME
}
_HEADERS
}
)
${${
PROJECT_NAME
}
_HEADERS
}
)
TARGET_INCLUDE_DIRECTORIES
(
${
PROJECT_NAME
}
PUBLIC $<INSTALL_INTERFACE:include>
)
target_include_directories
(
${
PROJECT_NAME
}
PUBLIC $<INSTALL_INTERFACE:include>
)
TARGET_LINK_LIBRARIES
(
${
PROJECT_NAME
}
hpp-util::hpp-util
)
target_link_libraries
(
${
PROJECT_NAME
}
hpp-util::hpp-util
)
INSTALL
(
TARGETS
${
PROJECT_NAME
}
EXPORT
${
TARGETS_EXPORT_NAME
}
DESTINATION lib
)
install
(
TARGETS
${
PROJECT_NAME
}
EXPORT
${
TARGETS_EXPORT_NAME
}
DESTINATION lib
)
ADD_SUBDIRECTORY
(
tests
)
add_subdirectory
(
tests
)
# Add dependency toward hpp-statistics library in pkg-config file.
# Add dependency toward hpp-statistics library in pkg-config file.
PKG_CONFIG_APPEND_LIBS
(
"hpp-statistics"
)
pkg_config_append_libs
(
"hpp-statistics"
)
INSTALL
(
FILES package.xml DESTINATION share/
${
PROJECT_NAME
}
)
install
(
FILES package.xml DESTINATION share/
${
PROJECT_NAME
}
)
This diff is collapsed.
Click to expand it.
tests/CMakeLists.txt
+
18
−
20
View file @
d6aabef1
...
@@ -2,32 +2,30 @@
...
@@ -2,32 +2,30 @@
#
#
# Author: Mathieu Geisert
# Author: Mathieu Geisert
#
#
# This file is part of hpp-core
# This file is part of hpp-core hpp-model-urdf is free software: you can
# hpp-model-urdf is free software: you can redistribute it and/or modify
# redistribute it and/or modify it under the terms of the GNU Lesser General
# it under the terms of the GNU Lesser General Public License as published by
# Public License as published by the Free Software Foundation, either version 3
# the Free Software Foundation, either version 3 of the License, or
# of the License, or (at your option) any later version.
# (at your option) any later version.
#
#
# hpp-core is distributed in the hope that it will be useful,
# hpp-core is distributed in the hope that it will be useful, but WITHOUT ANY
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# A PARTICULAR PURPOSE. See the GNU General Lesser Public License for more
# GNU General Lesser Public License for more details.
# details. You should have received a copy of the GNU Lesser General Public
# You should have received a copy of the GNU Lesser General Public License
# License along with hpp-core If not, see <http://www.gnu.org/licenses/>.
# along with hpp-core If not, see <http://www.gnu.org/licenses/>.
# ADD_TESTCASE(NAME)
# ADD_TESTCASE(NAME)
# ------------------------
# ------------------------
#
#
# Define a test named `NAME'.
# Define a test named `NAME'.
#
#
# This macro will create a binary from `NAME.cc', link it against
# This macro will create a binary from `NAME.cc', link it against
Boost and add
#
Boost and add
it to the test suite.
# it to the test suite.
#
#
MACRO
(
ADD_TESTCASE NAME
)
macro
(
ADD_TESTCASE NAME
)
ADD_UNIT_TEST
(
${
NAME
}
${
NAME
}
.cc
)
add_unit_test
(
${
NAME
}
${
NAME
}
.cc
)
TARGET_LINK_LIBRARIES
(
${
NAME
}
${
PROJECT_NAME
}
)
target_link_libraries
(
${
NAME
}
${
PROJECT_NAME
}
)
ENDMACRO
(
ADD_TESTCASE
)
endmacro
(
ADD_TESTCASE
)
ADD_TESTCASE
(
test-successstatistics
)
add_testcase
(
test-successstatistics
)
ADD_TESTCASE
(
test-distribution
)
add_testcase
(
test-distribution
)
ADD_TESTCASE
(
test-statistics
)
add_testcase
(
test-statistics
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment