about summary refs log tree commit diff
path: root/CMakeLists.txt
blob: 9a40c37a2f070958ae3d6fdcd33289aa576ec341 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required(VERSION 3.10)

project(cards C)

find_package(SDL2 REQUIRED)

if(NOT MSVC)
	add_compile_options(-Wall -Wextra -pedantic)
endif()

add_library(cards STATIC cards.c)
target_link_libraries(cards SDL2::SDL2)

add_executable(example EXCLUDE_FROM_ALL example.c)
target_link_libraries(example cards SDL2::SDL2main)

add_executable(dump EXCLUDE_FROM_ALL dump.c)
target_link_libraries(dump cards)