WiiDuktape/source/CMakeLists.txt
Fries e9349f026a add grrlib.
also restructure the code so the js file has an update and start
function that gets called.
2024-06-19 21:08:16 -07:00

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)