Skip to content

Commit

Permalink
Merge pull request #46 from paulsengroup/refactor
Browse files Browse the repository at this point in the history
Restructure codebase
  • Loading branch information
robomics authored Nov 13, 2024
2 parents d83f032 + 51155e1 commit e85d095
Show file tree
Hide file tree
Showing 65 changed files with 1,693 additions and 1,338 deletions.
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.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit e85d095

Please sign in to comment.