diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index e69de29..0000000 diff --git a/CMakeLists.txt b/CMakeLists.txt index ab1f995..91a0f25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ project(autocheck VERSION 1.0.0 LANGUAGES CXX) set(CMAKE_MODULE_PATH ${CMAKE_BINARY_DIR} ${CMAKE_MODULE_PATH}) find_package(gtest) -find_package(catch2) +find_package(Catch2) add_subdirectory(include) enable_testing() diff --git a/conanfile.py b/conanfile.py new file mode 100644 index 0000000..3298983 --- /dev/null +++ b/conanfile.py @@ -0,0 +1,19 @@ +from conans import ConanFile + +class AutocheckConan(ConanFile): + name = 'autocheck' + license = 'MIT' + author = 'John Freeman ' + url = 'https://github.com/thejohnfreeman/autocheck' + description = 'QuickCheck clone for C++' + topics = ('testing') + build_requires = ( + 'Catch2/2.5.0@catchorg/stable', + 'gtest/1.8.1@bincrafters/stable', + ) + generators = 'cmake_find_package' + exports_sources = 'include/**/*.hpp' + no_copy_source = True + + def package(self): + self.copy('**/*.hpp') diff --git a/conanfile.txt b/conanfile.txt deleted file mode 100644 index 3ed88f1..0000000 --- a/conanfile.txt +++ /dev/null @@ -1,6 +0,0 @@ -[requires] -gtest/1.8.1@bincrafters/stable -catch2/2.5.0@bincrafters/stable - -[generators] -cmake_find_package diff --git a/tutorial/CMakeLists.txt b/tutorial/CMakeLists.txt index 396139c..6ec3404 100644 --- a/tutorial/CMakeLists.txt +++ b/tutorial/CMakeLists.txt @@ -1,5 +1,5 @@ set(demonstrate_failure_DEPENDS autocheck::autocheck gtest::gtest) -set(factorial_DEPENDS autocheck::autocheck catch2::catch2) +set(factorial_DEPENDS autocheck::autocheck Catch2::Catch2) set(insert_sorted_DEPENDS autocheck::autocheck) set(reverse_DEPENDS autocheck::autocheck)