summaryrefslogtreecommitdiff
path: root/gfx-iso/CMakeLists.txt
blob: 993bbb30822187a2f41453ecf6c7d26b46a3055d (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
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
  mem
  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)