Initial commit.

This commit is contained in:
2016-11-21 17:53:46 +01:00
commit 3100f4a733
14 changed files with 262 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
set(target tests)
file(GLOB core_sources "*.cpp")
set(includes
${PROJECT_SOURCE_DIR}/lib/catch/single_include
)
add_executable(${target} ${core_sources})
target_include_directories(${target} PRIVATE ${includes})
target_link_libraries(${target} anthem)
add_custom_target(run-tests
COMMAND ${CMAKE_BINARY_DIR}/bin/tests
DEPENDS ${target}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
+2
View File
@@ -0,0 +1,2 @@
#include <catch.hpp>
+2
View File
@@ -0,0 +1,2 @@
#define CATCH_CONFIG_MAIN
#include <catch.hpp>