Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmcfarlane committed May 23, 2021
1 parent 6da9edd commit de4cc80
Show file tree
Hide file tree
Showing 44 changed files with 207 additions and 2,968 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "external/wide-integer"]
path = external/wide-integer
url = [email protected]:johnmcfarlane/wide-integer.git
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ project(cnl)

cmake_minimum_required(VERSION 3.5.1)

find_package(wide-integer REQUIRED)

include(CTest)
add_subdirectory("test")

Expand All @@ -22,6 +24,8 @@ target_include_directories(
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)

target_link_libraries(Cnl INTERFACE wide-integer::wide-integer)

install(TARGETS Cnl EXPORT CnlTargets)
install(DIRECTORY include/ DESTINATION include)
install(EXPORT CnlTargets
Expand Down
1 change: 1 addition & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class CnlConan(ConanFile):
requires = [
"benchmark/1.5.2",
"gtest/1.10.0",
"wide-integer/0.0.0@johnmcfarlane/local",
]

scm = {
Expand Down
43 changes: 43 additions & 0 deletions external/wide-integer/conanfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from conans import CMake, ConanFile, tools

class WideIntegerConan(ConanFile):
name = "wide-integer"
license = "Boost Software License 1.0"
author = "Christopher Kormanyos <[email protected]>"
url = "https://github.com/johnmcfarlane/wide-integer"
homepage = "https://github.com/ckormanyos/wide-integer"
description = "Wide-Integer implements a generic C++ template for uint128_t, uint256_t, uint512_t, uint1024_t, etc."
topics = ("high-performance", "embedded-systems", "multiprecision", "numerical", "big-integer")
settings = "os", "compiler", "build_type", "arch"
options = {
}
default_options = {
}
generators = "cmake_find_package"
no_copy_source = True

scm = {
"revision": "conan",
"type": "git",
"url": "https://github.com/johnmcfarlane/wide-integer.git",
}

def _configure_cmake(self):
cmake = CMake(self)
cmake.configure()
return cmake

def build(self):
cmake = self._configure_cmake()
cmake.build()
cmake.test(output_on_failure=True, target="all")

def package(self):
cmake = self._configure_cmake()
cmake.install()

def package_id(self):
self.info.header_only()
34 changes: 0 additions & 34 deletions include/cnl/_impl/duplex_integer.h

This file was deleted.

44 changes: 0 additions & 44 deletions include/cnl/_impl/duplex_integer/comparison.h

This file was deleted.

81 changes: 0 additions & 81 deletions include/cnl/_impl/duplex_integer/ctors.h

This file was deleted.

30 changes: 0 additions & 30 deletions include/cnl/_impl/duplex_integer/declaration.h

This file was deleted.

112 changes: 0 additions & 112 deletions include/cnl/_impl/duplex_integer/definition.h

This file was deleted.

Loading

0 comments on commit de4cc80

Please sign in to comment.