mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +00:00
Updated CMakeLists.txt - works with VS2017 and g++-8. Added catch testing
This commit is contained in:
parent
a8ede10d84
commit
2539bc33ce
1
tests/.gitignore
vendored
Normal file
1
tests/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
build/
|
@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.6)
|
||||
project(TEST)
|
||||
project(ARGPARSE)
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
@ -10,15 +10,16 @@ if (WIN32)
|
||||
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
# Test executable
|
||||
file(GLOB TESTS_SOURCES
|
||||
"main.cpp"
|
||||
# ARGPARSE executable
|
||||
file(GLOB ARGPARSE_TEST_SOURCES
|
||||
"*.cpp"
|
||||
"*.hpp"
|
||||
"../src/argparse.hpp"
|
||||
)
|
||||
ADD_EXECUTABLE(TEST ${TESTS_SOURCES})
|
||||
ADD_EXECUTABLE(ARGPARSE ${ARGPARSE_TEST_SOURCES})
|
||||
INCLUDE_DIRECTORIES("../src")
|
||||
set_target_properties(TEST PROPERTIES OUTPUT_NAME tests)
|
||||
set_property(TARGET TEST PROPERTY CXX_STANDARD 17)
|
||||
set_target_properties(ARGPARSE PROPERTIES OUTPUT_NAME tests)
|
||||
set_property(TARGET ARGPARSE PROPERTY CXX_STANDARD 17)
|
||||
|
||||
# Set ${PROJECT_NAME} as the startup project
|
||||
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT ARGPARSE)
|
15883
tests/catch.hpp
Normal file
15883
tests/catch.hpp
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user