Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure codebase #46

Merged
merged 9 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
250 changes: 0 additions & 250 deletions .github/workflows/windows-ci.yml.disabled

This file was deleted.

Binary file modified external/stocc-20240322.tar.xz
Binary file not shown.
26 changes: 25 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,29 @@
# with this library. If not, see
# <https://www.gnu.org/licenses/>.

add_subdirectory(libnchg)
include(FetchContent)

set(HICTK_ENABLE_TESTING OFF)
set(HICTK_BUILD_EXAMPLES OFF)
set(HICTK_BUILD_BENCHMARKS OFF)
set(HICTK_WITH_EIGEN OFF)
set(HICTK_BUILD_TOOLS OFF)
set(HICTK_INSTALL OFF)
set(HICTK_ENABLE_GIT_VERSION_TRACKING OFF)

FetchContent_Declare(
hictk
GIT_REPOSITORY https://github.com/paulsengroup/hictk.git
GIT_TAG v2.0.1
EXCLUDE_FROM_ALL
OVERRIDE_FIND_PACKAGE
SYSTEM
)

add_subdirectory(common)
add_subdirectory(descriptive_stats)
add_subdirectory(hypothesis_testing)
add_subdirectory(io)
add_subdirectory(preproc)

add_subdirectory(nchg)
47 changes: 47 additions & 0 deletions src/common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright (C) 2024 Roberto Rossini <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0
#
# This library is free software: you can redistribute it and/or
# modify it under the terms of the GNU Public License as published
# by the Free Software Foundation; either version 3 of the License,
# or (at your option) any later version.
#
# This library 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
# Library General Public License for more details.
#
# You should have received a copy of the GNU Public License along
# with this library. If not, see
# <https://www.gnu.org/licenses/>.

find_package(hictk REQUIRED)

add_library(nchg_common INTERFACE)
add_library(nchg::common ALIAS nchg_common)

target_sources(
nchg_common
INTERFACE
"${CMAKE_CURRENT_SOURCE_DIR}/include/nchg/common.hpp"
"${CMAKE_CURRENT_SOURCE_DIR}/include/nchg/concepts.hpp"
"${CMAKE_CURRENT_SOURCE_DIR}/include/nchg/hash.hpp"
"${CMAKE_CURRENT_SOURCE_DIR}/include/nchg/suppress_warnings.hpp"
"${CMAKE_CURRENT_SOURCE_DIR}/include/nchg/type_traits.hpp"
)

target_include_directories(
nchg_common
INTERFACE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:include>"
)

target_link_libraries(
nchg_common
INTERFACE
nchg_project_options
nchg_project_warnings
hictk::libhictk
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading