aboutsummaryrefslogtreecommitdiff
path: root/resource-manager/CMakeLists.txt
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-09-16 17:34:05 +0200
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-09-16 17:34:05 +0200
commit51f7699966ab856c873648ee25621b80421f8c8f (patch)
tree5806253e5175994c3b6db08ba74ea12bd892c821 /resource-manager/CMakeLists.txt
parent666a77004bbd8909b24355ef316b099f0683570f (diff)
loading images work through resource manager, however needs return fixing. cause right now static cast needs to be done outside
Diffstat (limited to 'resource-manager/CMakeLists.txt')
-rw-r--r--resource-manager/CMakeLists.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/resource-manager/CMakeLists.txt b/resource-manager/CMakeLists.txt
new file mode 100644
index 0000000..5c2c962
--- /dev/null
+++ b/resource-manager/CMakeLists.txt
@@ -0,0 +1,34 @@
+cmake_minimum_required(VERSION 3.28)
+
+# Set C and C++ standards
+set(CMAKE_C_STANDARD 11)
+set(CMAKE_CXX_STANDARD 20)
+set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
+
+# Enable debug features
+set(CMAKE_BUILD_TYPE Debug)
+add_compile_definitions(DEBUG)
+
+# Project name and supported languages
+project(crepe C CXX)
+
+# Find SDL2
+find_package(SDL2 REQUIRED)
+find_package(SDL2_image REQUIRED)
+
+# Add all source files to the executable
+add_executable(main
+ main.cpp
+ Audio_asset.cpp
+ Image_asset.cpp
+ resource_fabricator.cpp
+ resource_manager.cpp
+ constants.cpp
+)
+
+# Include directories for headers
+target_include_directories(main PRIVATE ${SDL2_INCLUDE_DIRS} ${SDL2_IMAGE_INCLUDE_DIRS} .)
+
+# Link SDL2 library
+target_link_libraries(main PRIVATE ${SDL2_LIBRARIES} SDL2_image::SDL2_image)
+