Catch/test_package/CMakeLists.txt
Uilian Ries 6234e3d54d #926 Conan recipe for Catch single header
- Insert catch.hpp (single header) to package
- Copy BDDTests and TrickyTest to validate Catch package

Signed-off-by: Uilian Ries <uilianries@gmail.com>
2017-06-23 10:34:56 -03:00

20 lines
649 B
CMake

cmake_minimum_required(VERSION 3.0)
project(CatchTest CXX)
# Conan setup ##################################################################
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
include(CTest)
# Build Test ###################################################################
file(GLOB SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
add_executable(${CMAKE_PROJECT_NAME} ${SOURCE_FILES})
# Execute Test #################################################################
enable_testing()
add_test(NAME test-single-header
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin
COMMAND ${CMAKE_PROJECT_NAME})