cmake_minimum_required(VERSION 3.17.0) # Build For ARM set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc) set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++) set(CMAKE_SYSTEM_NAME "Linux") set(CMAKE_SYSTEM_PROCESSOR "arm") # Start Project project(guest) # Build Library add_subdirectory(../../lib lib) # Build add_executable(example src/example.c) target_link_libraries(example trampoline)