blob: 85e1921a5e5e315c9b7865430f3767a5dc9a225d (
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
|
cmake_minimum_required(VERSION 3.0)
project(xplorer)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED On)
set(CMAKE_C_EXTENSIONS Off)
set(SDL_DIR src/contrib/SDL-2.30.2)
set(TINYDIR_DIR src/contrib/tinydir-1.2.4)
add_subdirectory(${SDL_DIR})
add_subdirectory(${TINYDIR_DIR})
add_executable(xplorer
src/xplorer.c)
target_include_directories(xplorer PRIVATE
${SDL_DIR}/include)
target_link_libraries(xplorer PRIVATE
SDL2-static
tinydir
ui)
target_compile_options(xplorer PRIVATE -Wall -Wextra -Wpedantic)
|