summaryrefslogtreecommitdiff
path: root/gfx-iso/CMakeLists.txt
blob: 8f95f7ffadbeec9838564d121d947e87b164c6e1 (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
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
  mempool)

target_compile_options(isogfx PRIVATE -Wall -Wextra -Wpedantic)

# Demo

project(isogfx-demo)

add_executable(isogfx-demo
  demo/isogfx-demo.c)

target_link_libraries(isogfx-demo PRIVATE
  gfx
  gfx-app
  isogfx)