mirror of
https://github.com/pantor/inja.git
synced 2026-06-25 03:54:17 +00:00
Added CMake and TravisCI
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Prepare "Catch" library for other executables
|
||||
set(CATCH_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty)
|
||||
add_library(Catch INTERFACE)
|
||||
target_include_directories(Catch INTERFACE ${CATCH_INCLUDE_DIR})
|
||||
|
||||
set(UNITTEST_TARGET_NAME "inja_unit")
|
||||
set(TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/test.cpp)
|
||||
add_executable(${UNITTEST_TARGET_NAME} ${TEST_SOURCES})
|
||||
target_link_libraries(${UNITTEST_TARGET_NAME} Catch)
|
||||
|
||||
add_test(NAME "${UNITTEST_TARGET_NAME}_default"
|
||||
COMMAND ${UNITTEST_TARGET_NAME}
|
||||
)
|
||||
Binary file not shown.
Reference in New Issue
Block a user