aboutsummaryrefslogtreecommitdiff
path: root/resource-manager/CMakeLists.txt
blob: cf883ae7de4cca45d3b9ee250b778083de930abf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
    resource_manager.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} )