Set output directory for NDS ROM and remove unused include in main.cpp
This commit is contained in:
@@ -11,6 +11,9 @@ if(NOT EXISTS "${DEVKITPRO_CMAKE}")
|
|||||||
message(FATAL_ERROR "Could not find NDS.cmake at ${DEVKITPRO_CMAKE}. Check DEVKITPRO.")
|
message(FATAL_ERROR "Could not find NDS.cmake at ${DEVKITPRO_CMAKE}. Check DEVKITPRO.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Set target SD directory for generated NDS ROM
|
||||||
|
set(OUTPUT_DIRECTORY "/mnt/6d0c4735-6031-46df-bf0a-b44eeea7dcca")
|
||||||
|
|
||||||
# Ensure re-configure runs in DS context as well.
|
# Ensure re-configure runs in DS context as well.
|
||||||
set(CMAKE_SYSTEM_NAME NintendoDS CACHE INTERNAL "Target system" FORCE)
|
set(CMAKE_SYSTEM_NAME NintendoDS CACHE INTERNAL "Target system" FORCE)
|
||||||
set(CMAKE_SYSTEM_PROCESSOR armv5te CACHE INTERNAL "Target CPU" FORCE)
|
set(CMAKE_SYSTEM_PROCESSOR armv5te CACHE INTERNAL "Target CPU" FORCE)
|
||||||
@@ -183,7 +186,7 @@ add_custom_target(run
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(install_sd
|
add_custom_target(install_sd
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.nds /run/media/phillip/9016-4EF8/devel/
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.nds ${OUTPUT_DIRECTORY}
|
||||||
DEPENDS ${TARGET_NAME}_nds
|
DEPENDS ${TARGET_NAME}_nds
|
||||||
COMMENT "Copying ROM to SD card"
|
COMMENT "Copying ROM to SD card"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#include <nds.h>
|
#include <nds.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|||||||
Reference in New Issue
Block a user