blob: b57a83fe9e2b184bc753a3b66573f8ba33a229b3 (
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
28
29
30
31
32
33
|
cmake_minimum_required(VERSION 3.0)
project(isogfx)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED On)
set(CMAKE_C_EXTENSIONS Off)
add_library(isogfx
src/isogfx.c)
target_include_directories(isogfx PUBLIC
include)
target_link_libraries(isogfx PRIVATE
filesystem
mempool)
target_compile_options(isogfx PRIVATE -Wall -Wextra -Wpedantic)
# Demo
project(isogfx-app)
add_executable(isogfx-app
app/checkerboard.c
app/isogfx-demo.c
app/main.c)
target_link_libraries(isogfx-app PRIVATE
gfx
gfx-app
isogfx)
|