Browse Source

Organize CMakeLists

Order files from order of includes.
master
TheoryOfNekomata 2 years ago
parent
commit
13bc81c018
1 changed files with 16 additions and 7 deletions
  1. +16
    -7
      CMakeLists.txt

+ 16
- 7
CMakeLists.txt View File

@@ -28,7 +28,7 @@ link_directories(
add_executable( add_executable(
game game
dependencies/minIni/dev/minIni.h dependencies/minIni/dev/minIni.h
dependencies/minIni/dev/minIni.c
dependencies/minIni/dev/minIni.c
src/packages/game/output/IZ_video.h src/packages/game/output/IZ_video.h
src/packages/game/output/IZ_video.c src/packages/game/output/IZ_video.c
src/packages/game/IZ_common.h src/packages/game/IZ_common.h
@@ -52,23 +52,31 @@ target_link_libraries(
add_executable( add_executable(
game-test-output game-test-output
dependencies/bdd-for-c/bdd-for-c.h dependencies/bdd-for-c/bdd-for-c.h
src/packages/test/IZ_mock.h src/packages/test/IZ_test.h
__mocks__/minIni.mock.h
src/packages/test/IZ_mock.h
src/packages/test/IZ_test.h

__mocks__/minIni.mock.h
__mocks__/SDL_keyboard.mock.h


src/packages/game/IZ_config.h src/packages/game/IZ_config.h
src/packages/game/__mocks__/IZ_config.mock.h


src/packages/game/output/IZ_video.h src/packages/game/output/IZ_video.h
src/packages/game/output/IZ_video.c src/packages/game/output/IZ_video.c
src/packages/game/output/IZ_video.test.c src/packages/game/output/IZ_video.test.c
__mocks__/SDL_keyboard.mock.h src/packages/game/__mocks__/IZ_config.mock.h)
)


add_executable( add_executable(
game-test-input game-test-input
dependencies/bdd-for-c/bdd-for-c.h dependencies/bdd-for-c/bdd-for-c.h
src/packages/test/IZ_mock.h src/packages/test/IZ_test.h
__mocks__/minIni.mock.h
src/packages/test/IZ_mock.h
src/packages/test/IZ_test.h

__mocks__/minIni.mock.h
__mocks__/SDL_keyboard.mock.h


src/packages/game/IZ_config.h src/packages/game/IZ_config.h
src/packages/game/__mocks__/IZ_config.mock.h


src/packages/game/input/IZ_keyboard.h src/packages/game/input/IZ_keyboard.h
src/packages/game/input/IZ_keyboard.c src/packages/game/input/IZ_keyboard.c
@@ -76,7 +84,8 @@ add_executable(


# src/packages/game/input/IZ_joystick.h # src/packages/game/input/IZ_joystick.h
# src/packages/game/input/IZ_joystick.c # src/packages/game/input/IZ_joystick.c
__mocks__/SDL_keyboard.mock.h src/packages/game/__mocks__/IZ_config.mock.h)

)


if (WIN32) if (WIN32)
add_custom_command(TARGET game POST_BUILD add_custom_command(TARGET game POST_BUILD


Loading…
Cancel
Save