Skip to content

Commit

Permalink
Move CMake sources to proper files
Browse files Browse the repository at this point in the history
  • Loading branch information
FergusonAJ committed Nov 1, 2023
1 parent 7a4be47 commit 84a1caf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
1 change: 1 addition & 0 deletions source/group_3_main.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions source/group_4_interface_main.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 84a1caf

Please sign in to comment.