WiiDuktape/source/CMakeLists.txt
Fries e5dfbf0e0c read javascript code from a js file!
the wii does the game loop now, as i passed some c functions to javascript. those functions are inside objects to make the js api easier to read and use.
2024-06-19 00:39:01 -07:00

10 lines
388 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)
ogc_create_dol(WiiDuktape)