-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
29 lines (23 loc) · 851 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
28
29
cmake_minimum_required(VERSION 3.10)
project(cpp-kzg-ceremony-client)
# For cross compiling
if("$ENV{CXX}" MATCHES "arm-linux-gnueabihf-g\\+\\+$")
set(CMAKE_SYSTEM_PROCESSOR "arm")
endif()
if("$ENV{CXX}" MATCHES "aarch64-linux-gnu-g\\+\\+$")
set(CMAKE_SYSTEM_PROCESSOR "aarch64")
endif()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing")
endif()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing")
endif()
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(dependencies.cmake)
add_subdirectory(src)