aboutsummaryrefslogtreecommitdiff
path: root/mwe/resource-manager/CMakeLists.txt
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-31 18:41:30 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-31 18:41:30 +0100
commit8e3367b186e60eb1e33bf58a066823cb00a7566e (patch)
treec4038a31993767276efec5fa1b1a37dff3b79465 /mwe/resource-manager/CMakeLists.txt
parentb7df77d6cc26cb9ee46891d7108f01734b3104dd (diff)
parent35ef3ba91ce9e00466508f2388f4c1dd2321b505 (diff)
Merge branch 'master' into poc/audio-miniaudio
Diffstat (limited to 'mwe/resource-manager/CMakeLists.txt')
-rw-r--r--mwe/resource-manager/CMakeLists.txt40
1 files changed, 40 insertions, 0 deletions
diff --git a/mwe/resource-manager/CMakeLists.txt b/mwe/resource-manager/CMakeLists.txt
new file mode 100644
index 0000000..bbee3dc
--- /dev/null
+++ b/mwe/resource-manager/CMakeLists.txt
@@ -0,0 +1,40 @@
+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)
+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_package(TMXLITE REQUIRED)
+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
+ tiledMap.cpp
+ resource_manager.cpp
+ resource_converter.cpp
+ spritesheet.cpp
+ constants.cpp
+ map_asset.cpp
+ map_layer.cpp
+ TextureMap.cpp
+)
+
+target_include_directories(main PRIVATE ${SDL2_INCLUDE_DIRS} ${SDL2_IMAGE_INCLUDE_DIRS} ${TMXLITE_INCLUDE_DIR} .)
+
+target_link_libraries(main PRIVATE ${SDL2_LIBRARIES} SDL2_image::SDL2_image ${TMXLITE_LIBRARIES} )
+