aboutsummaryrefslogtreecommitdiff
path: root/resource-manager/CMakeLists.txt
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-09-25 16:31:22 +0200
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-09-25 16:31:22 +0200
commit9ab843567b27bd23eb7e0d2d4a48b78f7df93595 (patch)
tree5f580dfe75a2cf3148cdd3a9ff2b0b0930340ada /resource-manager/CMakeLists.txt
parent35224c07549448e919a18a463e5dec81bbabf7c6 (diff)
testing map implementation
Diffstat (limited to 'resource-manager/CMakeLists.txt')
-rw-r--r--resource-manager/CMakeLists.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/resource-manager/CMakeLists.txt b/resource-manager/CMakeLists.txt
index c25ae2b..cf883ae 100644
--- a/resource-manager/CMakeLists.txt
+++ b/resource-manager/CMakeLists.txt
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.28)
+SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")
# Set C and C++ standards
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 20)
@@ -12,10 +13,11 @@ add_compile_definitions(DEBUG)
# Project name and supported languages
project(crepe C CXX)
-# Find SDL2
+find_package(TMXLITE REQUIRED)
find_package(SDL2 REQUIRED)
find_package(SDL2_image REQUIRED)
+
# Add all source files to the executable
add_executable(main
main.cpp
@@ -25,11 +27,12 @@ add_executable(main
resource_manager.cpp
spritesheet.cpp
constants.cpp
+ map_asset.cpp
+ map_layer.cpp
+ TextureMap.cpp
)
-# Include directories for headers
-target_include_directories(main PRIVATE ${SDL2_INCLUDE_DIRS} ${SDL2_IMAGE_INCLUDE_DIRS} .)
+target_include_directories(main PRIVATE ${SDL2_INCLUDE_DIRS} ${SDL2_IMAGE_INCLUDE_DIRS} ${TMXLITE_INCLUDE_DIR} .)
-# Link SDL2 library
-target_link_libraries(main PRIVATE ${SDL2_LIBRARIES} SDL2_image::SDL2_image)
+target_link_libraries(main PRIVATE ${SDL2_LIBRARIES} SDL2_image::SDL2_image ${TMXLITE_LIBRARIES} )