blob: e4a677d19369a87cb1ab055bdd079fd65af6b2bf (
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
|
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)
# Backend
add_library(isogfx-backend
src/backend.c)
target_include_directories(isogfx-backend PUBLIC
include)
target_link_libraries(isogfx-backend PUBLIC
isogfx)
target_link_libraries(isogfx-backend PRIVATE
gfx)
target_compile_options(isogfx-backend PRIVATE -Wall -Wextra -Wpedantic)
# Demos
add_subdirectory(demos)
|