2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- cmake_minimum_required(VERSION 3.20)
-
- # Set your project name here
- project(izanagi C)
-
- set(CMAKE_C_STANDARD 11)
-
- include_directories(
- "${PROJECT_SOURCE_DIR}/dependencies/SDL2/include"
- "${PROJECT_SOURCE_DIR}/dependencies/minIni/dev"
- "${PROJECT_SOURCE_DIR}/dependencies/bdd-for-c"
- )
-
- if (WIN32)
- if (CMAKE_SIZEOF_VOID_P EQUAL 8)
- set(PROJECT_ARCH x64)
- else ()
- set(PROJECT_ARCH x86)
- endif ()
- endif ()
-
- link_directories(
- "${PROJECT_SOURCE_DIR}/dependencies/SDL2/lib/${PROJECT_ARCH}"
- )
-
- add_executable(
- game
- dependencies/minIni/dev/minIni.h
- dependencies/minIni/dev/minIni.c
- src/packages/game/config/IZ_config.h
- src/packages/game/config/IZ_config.c
- src/packages/game/IZ_common.h
- src/packages/game/IZ_action.h
- src/packages/game/IZ_app.h
- src/packages/game/IZ_app.c
- src/packages/game/main.c
- )
- target_link_libraries(
- game
- SDL2main
- SDL2
- )
-
- add_executable(
- game-test
- src/packages/game/config/IZ_config.h
- src/packages/game/config/IZ_config.c
- dependencies/bdd-for-c/bdd-for-c.h
- src/packages/game-test/config/IZ_config.c
- )
-
- if (WIN32)
- add_custom_command(TARGET game POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy_if_different # which executes "cmake - E copy_if_different..."
- "${PROJECT_SOURCE_DIR}/dependencies/SDL2/lib/${PROJECT_ARCH}/SDL2.dll" # <--this is in-file
- $<TARGET_FILE_DIR:game>) # <--this is out-file path
- endif ()
|