Fixed problems in CMakeLists.txt

This commit is contained in:
yhirose 2021-08-17 19:23:31 -04:00
parent f5af8e44dc
commit 0606cd4bb3
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.0)
cmake_minimum_required(VERSION 3.14)
project("cpp-peglib")
set(CMAKE_CXX_STANDARD 17)

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.14)
project(test)
Include(FetchContent)
@ -17,6 +17,8 @@ add_executable(test-main test1.cc test2.cc test3.cc)
target_include_directories(test-main PRIVATE ..)
target_link_libraries(test-main PRIVATE Catch2::Catch2WithMain)
enable_testing()
add_test(
NAME TestMain
COMMAND test-main