CMakeLists.txt 709 Bytes
Newer Older
Javad Ebrahimian Amiri's avatar
Javad Ebrahimian Amiri committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
cmake_minimum_required(VERSION 3.10)

set(CMAKE_CXX_STANDARD 14)

#set(triple x86_64-pc-linux-gnu)

#set(CMAKE_C_COMPILER gcc)
#set(CMAKE_C_COMPILER_TARGET ${triple})
#set(CMAKE_CXX_COMPILER g++)
#set(CMAKE_CXX_COMPILER_TARGET ${triple})


project(cmake_zebu_runtime_helpers)

add_library(runtime_c_x64 STATIC src/runtime/runtime_c_x64_sysv.c)
add_library(runtime_asm_x64 STATIC src/runtime/runtime_asm_x64_sysv.S)
set_target_properties(runtime_asm_x64 PROPERTIES LINKER_LANGUAGE C)
add_library(runtime_c_aarch64 STATIC src/runtime/runtime_c_aarch64_sysv.c)
add_library(runtime_asm_aarch64 STATIC src/runtime/runtime_asm_aarch64_sysv.S)
set_target_properties(runtime_asm_aarch64 PROPERTIES LINKER_LANGUAGE C)