summaryrefslogtreecommitdiff
path: root/code/main/teensy_player/CMakeLists.txt
diff options
context:
space:
mode:
authorAbel Tim <git@abeltim.com>2025-06-04 11:48:33 +0200
committerAbel Tim <git@abeltim.com>2025-06-04 11:48:33 +0200
commit4f8208af89e90338a20a1abad7293348dabc84cd (patch)
treeda96ffe0d41d5a6850335d28ebc1718731489d81 /code/main/teensy_player/CMakeLists.txt
parent8d8ba16aa4c60e5c5d83297f0213dd474c5057b4 (diff)
downloadrobotica-4f8208af89e90338a20a1abad7293348dabc84cd.tar.gz
robotica-4f8208af89e90338a20a1abad7293348dabc84cd.zip
multiple things
Signed-off-by: Abel Tim <git@abeltim.com>
Diffstat (limited to 'code/main/teensy_player/CMakeLists.txt')
-rw-r--r--code/main/teensy_player/CMakeLists.txt33
1 files changed, 32 insertions, 1 deletions
diff --git a/code/main/teensy_player/CMakeLists.txt b/code/main/teensy_player/CMakeLists.txt
index 4de34fb..27e5715 100644
--- a/code/main/teensy_player/CMakeLists.txt
+++ b/code/main/teensy_player/CMakeLists.txt
@@ -2,6 +2,37 @@
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
-project(blinky)
+project(
+ player
+ VERSION 1.0
+ DESCRIPTION "The code for the soccer player robot. https://github.com/mendelcollege-robotics/robotica"
+ LANGUAGES C
+)
+#[===[
+# Create a static library target named "my_lib"
+add_library(my_lib
+ STATIC
+ src/my_lib.c
+)
+target_include_directories(
+ my_lib
+ PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}/include
+)
+
+# Create an executable target with the same name as the project name
+add_executable(
+ ${PROJECT_NAME}
+ src/main.c
+)
+
+# Link the library to the executable. PRIVATE means that the library is not
+# exposed to targets that depend on this target.
+target_link_libraries(
+ ${PROJECT_NAME}
+ PRIVATE
+ my_lib
+)
+]===]
target_sources(app PRIVATE src/main.c)