-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (30 loc) · 869 Bytes
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.12)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(pico_sdk_import.cmake)
project(microgl
LANGUAGES C CXX ASM
VERSION 0.0.1
DESCRIPTION "Embedded graphics library"
)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
pico_sdk_init()
# Building the library
add_library(microgl STATIC
src/microgl.c
)
set_target_properties(microgl PROPERTIES VERSION ${PROJECT_VERSION})
set_target_properties(microgl PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR})
set_target_properties(microgl PROPERTIES PUBLIC_HEADER include/microgl.h)
target_link_libraries(microgl
pico_stdlib
hardware_i2c
)
# Building the examples
add_subdirectory(examples)
include_directories(
/usr/arm-none-eabi/include
/usr/arm-none-eabi/include/c++/13.2.0
/usr/arm-none-eabi/include/c++/13.2.0/arm-none-eabi
./include
)