mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2024-12-28 20:43:38 +01:00
24 lines
705 B
CMake
24 lines
705 B
CMake
# Vhex toolchain file for chad Casio graphing calculators
|
|
|
|
set(CMAKE_SYSTEM_NAME Generic)
|
|
set(CMAKE_SYSTEM_VERSION 1)
|
|
set(CMAKE_SYSTEM_PROCESSOR sh)
|
|
|
|
set(CMAKE_C_COMPILER sh-elf-vhex-gcc)
|
|
set(CMAKE_CXX_COMPILER sh-elf-vhex-g++)
|
|
|
|
set(CMAKE_C_FLAGS_INIT "")
|
|
set(CMAKE_CXX_FLAGS_INIT "")
|
|
|
|
add_compile_options(-nostdlib)
|
|
add_link_options(-nostdlib)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
|
|
|
if(NOT DEFINED ENV{VXSDK_COMPILER_SYSROOT})
|
|
message(FATAL_ERROR "You should use the vxSDK to build this project")
|
|
endif()
|
|
set(VXSDK_COMPILER_INSTALL $ENV{VXSDK_COMPILER_SYSROOT})
|