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
3ad1c02e
"git@gitlab.laas.fr:coal-library/coal.git" did not exist on "613b060170f77fd752718a45096c804e54dd8b88"
Commit
3ad1c02e
authored
4 years ago
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] Exports
parent
35b9c689
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+18
-6
18 additions, 6 deletions
CMakeLists.txt
cmake
+1
-1
1 addition, 1 deletion
cmake
src/CMakeLists.txt
+0
-28
0 additions, 28 deletions
src/CMakeLists.txt
tests/CMakeLists.txt
+5
-14
5 additions, 14 deletions
tests/CMakeLists.txt
with
24 additions
and
49 deletions
CMakeLists.txt
+
18
−
6
View file @
3ad1c02e
#
# Copyright (c) 2014 CNRS
# Authors: Joseph Mirabel
# Copyright (c) 2014
, 2020
CNRS
# Authors: Joseph Mirabel
, Guilhem Saurel
#
#
# This file is part of hpp-statistics
...
...
@@ -17,11 +17,13 @@
# hpp-statistics If not, see
# <http://www.gnu.org/licenses/>.
CMAKE_MINIMUM_REQUIRED
(
VERSION
2.8
)
CMAKE_MINIMUM_REQUIRED
(
VERSION
3.1
)
SET
(
PROJECT_NAME hpp-statistics
)
SET
(
PROJECT_DESCRIPTION
"Classes for doing statistics."
)
SET
(
PROJECT_USE_CMAKE_EXPORT TRUE
)
INCLUDE
(
cmake/hpp.cmake
)
COMPUTE_PROJECT_ARGS
(
PROJECT_ARGS LANGUAGES CXX
)
...
...
@@ -33,16 +35,26 @@ IF (HPP_DEBUG)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DHPP_DEBUG"
)
ENDIF
()
SET
(
${
PROJECT_NAME
}
_HEADERS
ADD_PROJECT_DEPENDENCY
(
hpp-util REQUIRED
)
SET
(
${
PROJECT_NAME
}
_HEADERS
include/hpp/statistics/fwd.hh
include/hpp/statistics/bin.hh
include/hpp/statistics/success-bin.hh
include/hpp/statistics/distribution.hh
)
ADD_REQUIRED_DEPENDENCY
(
"hpp-util >= 3.2"
)
SET
(
${
PROJECT_NAME
}
_SOURCES
src/success-bin.cc
)
ADD_LIBRARY
(
${
PROJECT_NAME
}
SHARED
${${
PROJECT_NAME
}
_SOURCES
}
${${
PROJECT_NAME
}
_HEADERS
}
)
TARGET_INCLUDE_DIRECTORIES
(
${
PROJECT_NAME
}
PUBLIC $<INSTALL_INTERFACE:include>
)
TARGET_LINK_LIBRARIES
(
${
PROJECT_NAME
}
hpp-util::hpp-util
)
INSTALL
(
TARGETS
${
PROJECT_NAME
}
EXPORT
${
TARGETS_EXPORT_NAME
}
DESTINATION lib
)
ADD_SUBDIRECTORY
(
src
)
ADD_SUBDIRECTORY
(
tests
)
# Add dependency toward hpp-statistics library in pkg-config file.
...
...
This diff is collapsed.
Click to expand it.
cmake
@
7ab756be
Compare
7eca9ee6
...
7ab756be
Subproject commit 7
eca9ee6c9d1c4ee20eb82272e94f9d11642053a
Subproject commit 7
ab756beff8729739c45731dfc1edb6f88d2dbc8
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
deleted
100644 → 0
+
0
−
28
View file @
35b9c689
#
# Copyright (c) 2014 CNRS
# Authors: Joseph Mirabel
#
#
# 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.
#
# 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/>.
SET
(
LIBRARY_NAME
${
PROJECT_NAME
}
)
ADD_LIBRARY
(
${
LIBRARY_NAME
}
SHARED
success-bin.cc
)
PKG_CONFIG_USE_DEPENDENCY
(
${
LIBRARY_NAME
}
"hpp-util"
)
INSTALL
(
TARGETS
${
LIBRARY_NAME
}
DESTINATION lib
)
This diff is collapsed.
Click to expand it.
tests/CMakeLists.txt
+
5
−
14
View file @
3ad1c02e
...
...
@@ -23,20 +23,11 @@
# This macro will create a binary from `NAME.cc', link it against
# Boost and add it to the test suite.
#
MACRO
(
ADD_TESTCASE NAME GENERATED
)
IF
(
${
GENERATED
}
STREQUAL TRUE
)
ADD_EXECUTABLE
(
${
NAME
}
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
NAME
}
.cc
)
ELSE
()
ADD_EXECUTABLE
(
${
NAME
}
${
NAME
}
.cc
)
ENDIF
()
ADD_TEST
(
${
NAME
}
${
RUNTIME_OUTPUT_DIRECTORY
}
/
${
NAME
}
)
# Link against Boost and project library.
MACRO
(
ADD_TESTCASE NAME
)
ADD_UNIT_TEST
(
${
NAME
}
${
NAME
}
.cc
)
TARGET_LINK_LIBRARIES
(
${
NAME
}
${
PROJECT_NAME
}
)
PKG_CONFIG_USE_DEPENDENCY
(
${
NAME
}
"hpp-util"
)
ENDMACRO
(
ADD_TESTCASE
)
ADD_TESTCASE
(
test-successstatistics
FALSE
)
ADD_TESTCASE
(
test-distribution
FALSE
)
ADD_TESTCASE
(
test-statistics
FALSE
)
ADD_TESTCASE
(
test-successstatistics
)
ADD_TESTCASE
(
test-distribution
)
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