blob: 673cb6870b69d217b7c62b459744fe79f6c58c08 (
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
34
35
36
37
38
39
40
41
42
43
|
cmake_minimum_required(VERSION 3.0)
project(isogfx)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED On)
set(CMAKE_C_EXTENSIONS Off)
# isogfx
add_library(isogfx
src/isogfx.c)
target_include_directories(isogfx PUBLIC
include)
target_link_libraries(isogfx PUBLIC
filesystem
mem
mempool)
target_compile_options(isogfx PRIVATE -Wall -Wextra -Wpedantic)
# App
add_library(isogfx-app
src/app.c)
target_include_directories(isogfx-app PUBLIC
include)
target_link_libraries(isogfx-app PUBLIC
gfx-app
isogfx)
target_link_libraries(isogfx-app PRIVATE
gfx)
target_compile_options(isogfx-app PRIVATE -Wall -Wextra -Wpedantic)
# Demos
add_subdirectory(demos)
|