-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (25 loc) · 895 Bytes
/
CMakeLists.txt
File metadata and controls
33 lines (25 loc) · 895 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
33
cmake_minimum_required(VERSION 3.14.0)
project(ARIX VERSION 60.0)
include(cmake/verstring.cmake)
include(cmake/arix.cmake)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_STANDARD 11)
set(SFDC ${CMAKE_SOURCE_DIR}/tools/sfdc/sfdc.py)
find_program(RSYNC rsync REQUIRED)
find_program(CPIO cpio REQUIRED)
find_program(GZIP gzip REQUIRED)
find_program(FIND find REQUIRED)
set(SUPPORTED_ARCHS "aarch64" "x86_64")
set(ARCH ${CMAKE_SYSTEM_PROCESSOR} CACHE STRING "One of target machines: ${SUPPORTED_ARCHS}")
set_property(CACHE ARCH PROPERTY STRINGS ${SUPPORTED_ARCHS})
if (${ARCH} IN_LIST SUPPORTED_ARCHS)
message("-- Selected target arch: ${ARCH}")
else()
message(FATAL_ERROR "Wrong target arch specified: ${ARCH}")
endif()
add_subdirectory(external/tiny-stl)
add_subdirectory(include)
add_subdirectory(libs)
add_subdirectory(system)
add_subdirectory(initrd)
install(SCRIPT cmake/initrd.cmake)