-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
35 lines (25 loc) · 931 Bytes
/
CMakeLists.txt
File metadata and controls
35 lines (25 loc) · 931 Bytes
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
28
29
30
31
32
cmake_minimum_required(VERSION 3.10.0)
project(IOFilePatternBenchmarks
DESCRIPTION "Benchmarks to evaulate differnt IO access patterns"
LANGUAGES CXX
VERSION 0.0.1
)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -pedantic -O0")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
#####################################
# External projects
#####################################
include(FetchContent)
FetchContent_Declare(
args
GIT_REPOSITORY https://github.com/Taywee/args.git
GIT_TAG 6.4.7
)
set(ARGS_BUILD_EXAMPLE OFF CACHE INTERNAL "")
set(ARGS_BUILD_UNITTESTS OFF CACHE INTERNAL "")
FetchContent_MakeAvailable(args)
add_executable(producer producer.cpp)
add_executable(consumer consumer.cpp)
target_include_directories(producer PRIVATE ${args_SOURCE_DIR} )
target_include_directories(consumer PRIVATE ${args_SOURCE_DIR} )