-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
27 lines (21 loc) · 906 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.14)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(ByteRangerTest)
#include(FetchContent)
#FetchContent_Declare(
# googletest
# # Specify the commit you depend on and update it regularly.
# URL https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip
#)
## For Windows: Prevent overriding the parent project's compiler/linker settings
#set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
#FetchContent_MakeAvailable(googletest)
set(FLAGS -Wall -Wextra -Werror -Wconversion -pedantic -pedantic-errors -g)
add_compile_options(${FLAGS})
#enable_testing()
include_directories(include)
add_executable(${PROJECT_NAME} main.cpp include/ByteRanger.hpp)
#add_executable(${PROJECT_NAME}-ut test.cpp)
#target_link_libraries(${PROJECT_NAME}-ut gtest_main)
#add_test(NAME ${PROJECT_NAME}_test COMMAND ${PROJECT_NAME}-ut)