6234e3d54d
- Insert catch.hpp (single header) to package - Copy BDDTests and TrickyTest to validate Catch package Signed-off-by: Uilian Ries <uilianries@gmail.com>
20 lines
649 B
CMake
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})
|