From 84a1cafec6772e0d9fdb72bf8d51f606e2b8cf4b Mon Sep 17 00:00:00 2001 From: Austin Ferguson Date: Wed, 1 Nov 2023 12:00:40 -0400 Subject: [PATCH] Move CMake sources to proper files --- CMakeLists.txt | 2 +- source/group_3_main.cmake | 1 + source/group_4_interface_main.cmake | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bd56ce20..fdde0038 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ if(${BUILD_MAIN}) string(REPLACE ".cpp" "" EXE_NAME ${EXE_SOURCE}) # Create list of source files (currently just the one .cpp file) # Create executable and link to includes / libraries - add_executable(${EXE_NAME} ${CMAKE_SOURCE_DIR}/source/${EXE_SOURCE} source/Interfaces/TextureHolder.cpp source/Interfaces/TextureHolder.hpp) + add_executable(${EXE_NAME} ${CMAKE_SOURCE_DIR}/source/${EXE_SOURCE}) target_include_directories(${EXE_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/source ) diff --git a/source/group_3_main.cmake b/source/group_3_main.cmake index f0945b87..0a6e8c33 100644 --- a/source/group_3_main.cmake +++ b/source/group_3_main.cmake @@ -3,6 +3,7 @@ # Here, add one .cpp per line. Only the strings should add_source_to_target(${EXE_NAME} "source/Interfaces/MainInterface.cpp") +add_source_to_target(${EXE_NAME} "source/Interfaces/TextureHolder.cpp") add_source_to_target(${EXE_NAME} "source/Interfaces/Component.cpp") add_source_to_target(${EXE_NAME} "source/Interfaces/Component.hpp") add_source_to_target(${EXE_NAME} "source/Interfaces/Container.cpp") diff --git a/source/group_4_interface_main.cmake b/source/group_4_interface_main.cmake index f0945b87..0a6e8c33 100644 --- a/source/group_4_interface_main.cmake +++ b/source/group_4_interface_main.cmake @@ -3,6 +3,7 @@ # Here, add one .cpp per line. Only the strings should add_source_to_target(${EXE_NAME} "source/Interfaces/MainInterface.cpp") +add_source_to_target(${EXE_NAME} "source/Interfaces/TextureHolder.cpp") add_source_to_target(${EXE_NAME} "source/Interfaces/Component.cpp") add_source_to_target(${EXE_NAME} "source/Interfaces/Component.hpp") add_source_to_target(${EXE_NAME} "source/Interfaces/Container.cpp")