Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

38 rindas
1.0 KiB

  1. # Setup the project and settings
  2. project(games)
  3. # Get the source toegher
  4. file(GLOB sources *.c)
  5. set(OUTPUT_EXT)
  6. if(${PLATFORM} MATCHES "Web")
  7. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Os -s USE_GLFW=3 -s ASSERTIONS=1 -s WASM=1 -s EMTERPRETIFY=1 -s EMTERPRETIFY_ASYNC=1")
  8. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --shell-file ${CMAKE_SOURCE_DIR}/src/shell.html")
  9. set(OUTPUT_EXT ".html")
  10. endif()
  11. if (NOT TARGET raylib)
  12. find_package(raylib 2.0 REQUIRED)
  13. endif()
  14. # Do each game
  15. foreach(game_source ${sources})
  16. # Create the basename for the game
  17. get_filename_component(game_name ${game_source} NAME)
  18. string(REPLACE ".c" "${OUTPUT_EXT}" game_name ${game_name})
  19. # Setup the game
  20. add_executable(${game_name} ${game_source})
  21. # Link the libraries
  22. target_link_libraries(${game_name} raylib)
  23. endforeach()
  24. # Do the games with subdirectories
  25. add_subdirectory(drturtle)
  26. add_subdirectory(just_do)
  27. add_subdirectory(koala_seasons)
  28. add_subdirectory(light_my_ritual)
  29. add_subdirectory(skully_escape)
  30. add_subdirectory(wave_collector)