2019-07-25 05:03:43 +08:00
|
|
|
cmake_minimum_required(VERSION 3.1.0)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
|
|
|
|
project(libbolt_rt_project)
|
|
|
|
|
|
|
|
add_library(bolt_rt STATIC
|
|
|
|
instr.cpp
|
|
|
|
)
|
2019-08-08 07:09:50 +08:00
|
|
|
# Don't let the compiler think it can create calls to standard libs
|
|
|
|
target_compile_options(bolt_rt PRIVATE -ffreestanding)
|
2019-07-25 05:03:43 +08:00
|
|
|
|
|
|
|
install(TARGETS bolt_rt DESTINATION lib)
|