From a505955a3f0b8a5e536e4dd5348f6f81dece9593 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 19 Jan 2022 20:53:27 -0500 Subject: Use cards with add_subdirectory --- CMakeLists.txt | 7 +++---- 1 file 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) -- cgit 1.4.1