From 8222bfe56d4dabe8d92fc4b25ea1b0163b16f3e1 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 4 May 2024 16:51:29 -0700 Subject: Initial commit. --- CMakeLists.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..85e1921 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,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) -- cgit v1.2.3