WiiDuktape/source/CMakeLists.txt

19 lines
877 B
Text
Raw Normal View History

add_custom_command(
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/asset_generator.py ${CMAKE_CURRENT_SOURCE_DIR}/game.js ${CMAKE_CURRENT_SOURCE_DIR}/game.c
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/game.c
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/game.js ${CMAKE_CURRENT_SOURCE_DIR}/asset_generator.py
COMMENT "Creating game.c from game.js"
)
add_custom_command(
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/data_asset_generator.py ${CMAKE_SOURCE_DIR}/data ${CMAKE_CURRENT_SOURCE_DIR}/data_generated.c
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/data_generated.c
DEPENDS ${CMAKE_SOURCE_DIR}/data ${CMAKE_CURRENT_SOURCE_DIR}/data_asset_generator.py
COMMENT "Creating data_generated.c from the data directory"
)
add_executable(WiiDuktape main.c grrlib_duk.c wii_duk.c rgba.c game.c data_generated.c)
2024-06-19 04:51:50 +00:00
target_link_libraries(WiiDuktape duktape)
target_link_libraries(WiiDuktape GRRLIB)
2024-06-19 04:51:50 +00:00
ogc_create_dol(WiiDuktape)