Skip to content
Snippets Groups Projects
Commit 9c6d382f authored by David Maul's avatar David Maul :crab:
Browse files

feat: add CMake

parent 51585edb
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.10)
project(sibyl C)
set(CMAKE_C_STANDARD 11)
add_subdirectory(common)
add_subdirectory(clients)
\ No newline at end of file
# Embedded Linux Project (sibyl)
## Building
### Kernel Module
```bash
cd kernel
make
sudo make install
```
### Userspace
```
mkdir build && cd build
cmake ..
make
```
The binaries will be in:
- `build/daemon/daemon`
- `build/clients/*`
add_subdirectory(cpu_temp)
\ No newline at end of file
add_executable(cpu_temp
src/cpu_temp.c
)
target_link_libraries(cpu_temp
PRIVATE common
)
target_include_directories(cpu_temp
PRIVATE include
)
\ No newline at end of file
add_library(common
src/protocol.c
)
target_include_directories(common
PUBLIC include
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment