mirror of
https://github.com/pantor/inja.git
synced 2026-11-08 18:23:41 +00:00
Added CMake and TravisCI
This commit is contained in:
1 parent
bd46aa2e99
commit
8fe73eabc8
6 files changed
+80
No files matched your search
@@ -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