aboutsummaryrefslogtreecommitdiff
path: root/examples/graphics/tilesasm/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphics/tilesasm/CMakeLists.txt')
-rw-r--r--examples/graphics/tilesasm/CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/graphics/tilesasm/CMakeLists.txt b/examples/graphics/tilesasm/CMakeLists.txt
index 59ef665..3384875 100644
--- a/examples/graphics/tilesasm/CMakeLists.txt
+++ b/examples/graphics/tilesasm/CMakeLists.txt
@@ -3,10 +3,6 @@
cmake_minimum_required(VERSION 3.20)
-if(NOT DEFINED CMAKE_TOOLCHAIN_FILE AND DEFINED ENV{PSN00BSDK_LIBS})
- set(CMAKE_TOOLCHAIN_FILE $ENV{PSN00BSDK_LIBS}/cmake/sdk.cmake)
-endif()
-
project(
tilesasm
LANGUAGES C ASM
@@ -15,8 +11,14 @@ project(
HOMEPAGE_URL "http://lameguy64.net/?page=psn00bsdk"
)
+configure_file(data.s.template data.s)
+
file(GLOB _sources *.s *.c)
-psn00bsdk_add_executable(tilesasm STATIC ${_sources})
+psn00bsdk_add_executable(
+ tilesasm STATIC
+ ${_sources}
+ ${PROJECT_BINARY_DIR}/data.s
+)
#psn00bsdk_add_cd_image(tilesasm_iso tilesasm iso.xml DEPENDS tilesasm)
install(FILES ${PROJECT_BINARY_DIR}/tilesasm.exe TYPE BIN)