Start committing tests

This commit is contained in:
Simon Brand
2017-10-02 08:57:11 +01:00
parent 2d724293aa
commit f6fb170539
4 changed files with 11651 additions and 0 deletions

14
CMakeLists.txt Normal file
View File

@@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 3.0)
project(cmake_test)
# Prepare "Catch" library for other executables
set(CATCH_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
add_library(Catch INTERFACE)
target_include_directories(Catch INTERFACE ${CATCH_INCLUDE_DIR})
# Make test executable
set(TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/tests/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/noexcept.cpp)
add_executable(tests ${TEST_SOURCES})
target_link_libraries(tests Catch)