Fries
e9349f026a
also restructure the code so the js file has an update and start function that gets called.
11 lines
429 B
CMake
11 lines
429 B
CMake
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
|
|
COMMENT "Creating game.c from game.js"
|
|
)
|
|
|
|
add_executable(WiiDuktape main.c game.c)
|
|
target_link_libraries(WiiDuktape duktape)
|
|
target_link_libraries(WiiDuktape GRRLIB)
|
|
ogc_create_dol(WiiDuktape)
|