-
Notifications
You must be signed in to change notification settings - Fork 71
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
1 parent
6290324
commit c16db24
Showing
7 changed files
with
65 additions
and
3 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
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
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
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
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,17 @@ | ||
# Copyright 2018, 2019 Peter Dimov | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt | ||
|
||
cmake_minimum_required(VERSION 3.5...3.16) | ||
|
||
project(cmake_install_test LANGUAGES CXX) | ||
|
||
find_package(boost_histogram REQUIRED) | ||
|
||
add_executable(quick ../quick.cpp) | ||
target_link_libraries(quick Boost::histogram) | ||
|
||
enable_testing() | ||
add_test(quick quick) | ||
|
||
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>) |
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,24 @@ | ||
# Copyright 2018, 2019 Peter Dimov | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt | ||
|
||
cmake_minimum_required(VERSION 3.5...3.16) | ||
|
||
project(cmake_subdir_test LANGUAGES CXX) | ||
|
||
add_subdirectory(../.. boostorg/histogram) | ||
|
||
add_subdirectory(../../../config boostorg/config) | ||
add_subdirectory(../../../core boostorg/core) | ||
add_subdirectory(../../../mp11 boostorg/mp11) | ||
add_subdirectory(../../../throw_exception boostorg/throw_exception) | ||
add_subdirectory(../../../variant2 boostorg/variant2) | ||
add_subdirectory(../../../math boostorg/math) | ||
|
||
add_executable(quick ../quick.cpp) | ||
target_link_libraries(quick Boost::histogram) | ||
|
||
enable_testing() | ||
add_test(quick quick) | ||
|
||
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>) |
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,18 @@ | ||
// Copyright 2022 Hans Dembinski | ||
// | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// (See accompanying file LICENSE_1_0.txt | ||
// or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#include <boost/histogram.hpp> | ||
|
||
int main() { | ||
using namespace boost::histogram; | ||
|
||
auto h = make_histogram(axis::integer<>(0, 5)); | ||
|
||
h(0); | ||
|
||
auto values = {1, 2}; | ||
h.fill(values); | ||
} |