-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
45 lines (37 loc) · 1.79 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.1.0)
project(logger_benchmarks)
# set(CMAKE_CXX_FLAGS "-m64 -march=native" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS "-m64 -march=x86-64" CACHE STRING "" FORCE)
set(CMAKE_VERBOSE_MAKEFILE TRUE CACHE BOOL "Verbose output" FORCE)
set(BUILD_SHARED_LIBS "OFF")
#-------------------------------------------------------------------------------------------------------
# Set default build to release
#-------------------------------------------------------------------------------------------------------
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build" FORCE)
endif ()
#---------------------------------------------------------------------------------------
# Compiler config
#---------------------------------------------------------------------------------------
if (NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif ()
#-------------------------------------------------------------------------------------------------------
# Required Packages
#-------------------------------------------------------------------------------------------------------
find_package(Threads REQUIRED)
#---------------------------------------------------------------------------------------
# Subdirectories
#-------------------------------------------------------------------------------------------------------
add_subdirectory(quill)
add_subdirectory(third_party/Iyengar_NanoLog)
add_subdirectory(third_party/reckless)
add_subdirectory(third_party/platformlab_nanolog)
set(ADD_G3LOG_UNIT_TEST OFF)
add_subdirectory(third_party/g3log)
add_subdirectory(third_party/binlog)
add_subdirectory(third_party/fmtlog)
add_subdirectory(third_party/xtr)
add_subdirectory(third_party/bqlog)
add_subdirectory(benchmarks)