2022-08-25 08:30:18 +00:00
|
|
|
set(PROJECT_NAME Apple-II-Pi)
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.12)
|
|
|
|
include(pico_sdk_import.cmake)
|
2024-01-03 15:09:04 +00:00
|
|
|
project(${PROJECT_NAME} C CXX ASM)
|
2022-08-25 08:30:18 +00:00
|
|
|
pico_sdk_init()
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME})
|
|
|
|
pico_add_extra_outputs(${PROJECT_NAME})
|
|
|
|
|
|
|
|
pico_enable_stdio_uart(${PROJECT_NAME} 0)
|
|
|
|
pico_enable_stdio_usb(${PROJECT_NAME} 1)
|
|
|
|
|
2024-01-03 15:09:04 +00:00
|
|
|
include(FetchContent)
|
|
|
|
FetchContent_Declare(a2pico
|
|
|
|
GIT_REPOSITORY https://github.com/oliverschmidt/a2pico.git
|
|
|
|
GIT_TAG main
|
|
|
|
)
|
|
|
|
FetchContent_MakeAvailable(a2pico)
|
2022-08-25 08:30:18 +00:00
|
|
|
|
2024-01-03 16:01:23 +00:00
|
|
|
add_dependencies(${PROJECT_NAME} rom)
|
|
|
|
add_custom_target(rom make -C ../../pidrive)
|
|
|
|
|
2022-08-25 08:30:18 +00:00
|
|
|
target_sources(${PROJECT_NAME} PRIVATE
|
|
|
|
main.c
|
|
|
|
board.c
|
|
|
|
incbin.S
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE
|
|
|
|
pico_stdlib
|
|
|
|
pico_multicore
|
2024-01-03 15:09:04 +00:00
|
|
|
a2pico
|
2022-08-25 08:30:18 +00:00
|
|
|
)
|