summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 655eb9e761b7949a5e35eef27cd380da131fe067 (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
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
  filesystem
  tinydir
  ui)

target_compile_options(xplorer PRIVATE -Wall -Wextra -Wpedantic)