Skip to content

Commit

Permalink
Switch to Conan recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnfreeman committed Jan 28, 2019
1 parent 425fa29 commit 20c17f7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
Empty file removed .gitmodules
Empty file.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
19 changes: 19 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from conans import ConanFile

class AutocheckConan(ConanFile):
name = 'autocheck'
license = 'MIT'
author = 'John Freeman <jfreeman08@gmail.com>'
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')
6 changes: 0 additions & 6 deletions conanfile.txt

This file was deleted.

2 changes: 1 addition & 1 deletion tutorial/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit 20c17f7

Please sign in to comment.