cmake_minimum_required (VERSION 3.15)
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
project(DP_Arm9)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_STANDARD 11)

# TODO: Add commands

enable_language(ASM)

add_compile_options(-fms-extensions)

file(GLOB_RECURSE SOURCES "*.c" "*.cpp" "*.s")
file(GLOB OVERLAY_INC overlays/*/include)

add_executable(DP_Arm9 ${SOURCES})
target_include_directories(DP_Arm9 PRIVATE ../include ../include-mw lib/NitroSDK/include lib/MSL_C/include lib/libnns/include ${OVERLAY_INC} ../files)
target_compile_definitions(DP_Arm9 PUBLIC __CLION_IDE__)
