set(CMAKE_MODULE_PATH ~/.cmake) include(xmos_toolchain) project(xmos_cmake_build_example VERSION 1.0.0 LANGUAGES XC ) add_executable(xmos_cmake_build_example.xe) target_sources(xmos_cmake_build_example.xe PRIVATE src/main.xc src/module.xc ) target_include_directories(xmos_cmake_build_example.xe PRIVATE src ) set(TARGET_OPTIONS -target=XCORE-AI-EXPLORER) target_compile_options(xmos_cmake_build_example.xe PRIVATE ${TARGET_OPTIONS} ) target_link_options(xmos_cmake_build_example.xe PRIVATE ${TARGET_OPTIONS} ) target_compile_definitions(xmos_cmake_build_example.xe PRIVATE XUD_CORE_CLOCK=600 )