2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
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.
 
 
 
 
 
 

60 rindas
1.7 KiB

  1. cmake_minimum_required(VERSION 3.21)
  2. # Set your project name here
  3. project(izanagi C)
  4. set(CMAKE_C_STANDARD 11)
  5. include_directories(
  6. "${PROJECT_SOURCE_DIR}/dependencies/SDL2/include"
  7. "${PROJECT_SOURCE_DIR}/dependencies/minIni/dev"
  8. "${PROJECT_SOURCE_DIR}/dependencies/bdd-for-c"
  9. "${PROJECT_SOURCE_DIR}/dependencies/portmidi/pm_common"
  10. )
  11. if (WIN32)
  12. if (CMAKE_SIZEOF_VOID_P EQUAL 8)
  13. set(PROJECT_ARCH x64)
  14. else ()
  15. set(PROJECT_ARCH x86)
  16. endif ()
  17. endif ()
  18. link_directories(
  19. "${PROJECT_SOURCE_DIR}/dependencies/SDL2/lib/${PROJECT_ARCH}"
  20. "${PROJECT_SOURCE_DIR}/dependencies/portmidi/Release"
  21. )
  22. add_executable(
  23. game
  24. dependencies/minIni/dev/minIni.h
  25. dependencies/minIni/dev/minIni.c
  26. src/packages/game/output/IZ_video.h
  27. src/packages/game/output/IZ_video.c
  28. src/packages/game/IZ_common.h
  29. src/packages/game/IZ_action.h
  30. src/packages/game/IZ_app.h
  31. src/packages/game/IZ_app.c
  32. src/packages/game/main.c
  33. src/packages/game/input/IZ_joystick.c src/packages/game/input/IZ_joystick.h src/packages/game/input/IZ_keyboard.c src/packages/game/input/IZ_keyboard.h src/packages/game/IZ_config.c src/packages/game/IZ_config.h)
  34. target_link_libraries(
  35. game
  36. SDL2main
  37. SDL2
  38. )
  39. add_executable(
  40. game-test
  41. dependencies/bdd-for-c/bdd-for-c.h
  42. src/packages/game/output/IZ_video.h
  43. src/packages/game/output/IZ_video.c
  44. src/packages/game/output/IZ_config.test.c
  45. src/packages/test/IZ_mock.h)
  46. if (WIN32)
  47. add_custom_command(TARGET game POST_BUILD
  48. COMMAND ${CMAKE_COMMAND} -E copy_if_different # which executes "cmake - E copy_if_different..."
  49. "${PROJECT_SOURCE_DIR}/dependencies/SDL2/lib/${PROJECT_ARCH}/SDL2.dll" # <--this is in-file
  50. $<TARGET_FILE_DIR:game>) # <--this is out-file path
  51. endif ()