From 13bc81c01835c510f3272b91ea1fa519844d4f86 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Thu, 19 May 2022 07:59:52 +0800 Subject: [PATCH] Organize CMakeLists Order files from order of includes. --- CMakeLists.txt | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12056c0..09f5b06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ link_directories( add_executable( game 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.c src/packages/game/IZ_common.h @@ -52,23 +52,31 @@ target_link_libraries( add_executable( game-test-output 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/__mocks__/IZ_config.mock.h src/packages/game/output/IZ_video.h src/packages/game/output/IZ_video.c src/packages/game/output/IZ_video.test.c - __mocks__/SDL_keyboard.mock.h src/packages/game/__mocks__/IZ_config.mock.h) +) add_executable( game-test-input 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/__mocks__/IZ_config.mock.h src/packages/game/input/IZ_keyboard.h 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.c - __mocks__/SDL_keyboard.mock.h src/packages/game/__mocks__/IZ_config.mock.h) + +) if (WIN32) add_custom_command(TARGET game POST_BUILD