summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-01-19 20:53:27 -0500
committerJune McEnroe <june@causal.agency>2022-01-19 20:53:27 -0500
commita505955a3f0b8a5e536e4dd5348f6f81dece9593 (patch)
treec9f179f3a9e71b0651a42bb2328a474af0e7dc22
parentMerge commit '344497630ac9ef2d46287cd574472ce369694076' (diff)
downloadwep-a505955a3f0b8a5e536e4dd5348f6f81dece9593.tar.gz
wep-a505955a3f0b8a5e536e4dd5348f6f81dece9593.zip
Use cards with add_subdirectory
-rw-r--r--CMakeLists.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 926fed0..e2e63a1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,15 +3,14 @@ cmake_minimum_required(VERSION 3.10)
 project(WEP)
 
 find_package(SDL2 REQUIRED)
-include_directories(${SDL2_INCLUDE_DIRS})
+
+add_subdirectory(cards)
+include_directories(cards)
 
 if(NOT MSVC)
 	add_compile_options(-Wall -Wextra -pedantic)
 endif()
 
-include_directories(cards)
-add_library(cards STATIC cards/cards.c)
-
 add_executable(sol sol.c)
 add_executable(freecell freecell.c)