Re-implementation of Izanami game engine
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

CMakeLists.txt 1.6 KiB

1234567891011121314151617181920212223242526
  1. cmake_minimum_required(VERSION 3.20)
  2. project(izanami C)
  3. set(CMAKE_C_STANDARD 11)
  4. set(SDL2PATH "${PROJECT_SOURCE_DIR}/dependencies/SDL2-2.0.16/x86_64-w64-mingw32")
  5. find_package(SDL2 REQUIRED)
  6. include_directories(${SDL2_INCLUDE_DIR})
  7. add_executable(izanami src/packages/game/main.c src/packages/game/math/IZ_vector.c src/packages/game/math/IZ_vector.h src/packages/game/math/IZ_math.c src/packages/game/math/IZ_math.h src/packages/game/core/IZ_placeable.c src/packages/game/core/IZ_placeable.h src/packages/game/core/IZ_movable.c src/packages/game/core/IZ_movable.h src/packages/game/core/IZ_spatial.c src/packages/game/core/IZ_spatial.h src/packages/game/input/IZ_action.c src/packages/game/input/IZ_action.h src/packages/game/config/IZ_config.c src/packages/game/config/IZ_config.h src/packages/game/config/IZ_config_window.c src/packages/game/config/IZ_config_window.h src/packages/game/config/IZ_config_mapping.c src/packages/game/config/IZ_config_mapping.h src/packages/game/config/IZ_config_pool.c src/packages/game/config/IZ_config_pool.h src/packages/game/core/IZ_constants.h)
  8. target_link_libraries(izanami ${SDL2_LIBRARY})
  9. if (WIN32)
  10. add_custom_command(TARGET izanami POST_BUILD
  11. COMMAND ${CMAKE_COMMAND} -E copy_if_different
  12. "${PROJECT_SOURCE_DIR}/dependencies/SDL2-2.0.16/x86_64-w64-mingw32/bin/SDL2.dll"
  13. $<TARGET_FILE_DIR:izanami>)
  14. endif (WIN32)
  15. if (WIN64)
  16. add_custom_command(TARGET izanami POST_BUILD
  17. COMMAND ${CMAKE_COMMAND} -E copy_if_different
  18. "${PROJECT_SOURCE_DIR}/dependencies/SDL2-2.0.16/x86_64-w64-mingw32/bin/SDL2.dll"
  19. $<TARGET_FILE_DIR:izanami>)
  20. endif (WIN64)