blob: 7f97d306e8a8d076f0694ddef144f242cacb2d37 (
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 "4.2.0")
project("snake.s"
DESCRIPTION "The assembly snake!"
VERSION "1.0.0"
LANGUAGES ASM
)
option(SNAKE_BUILD_TESTS "Build the snake.s tests" ON)
add_subdirectory("libs")
add_library("snake.core"
"src/error.S"
"src/snake.S"
)
target_include_directories("snake.core" PUBLIC
"src"
)
target_link_libraries("snake.core" PUBLIC
"bindings::SDL2"
)
add_executable("snake.s" "src/main.S")
target_link_libraries("snake.s" PRIVATE "snake.core")
install(TARGETS "snake.s")
if(SNAKE_BUILD_TESTS)
add_subdirectory("tests")
endif()
|