diff --git a/firmware/projects/DemoCan/platforms/raspi/CMakeLists.txt b/firmware/projects/DemoCan/platforms/raspi/CMakeLists.txt index 737cc3e31..f811f25c7 100644 --- a/firmware/projects/DemoCan/platforms/raspi/CMakeLists.txt +++ b/firmware/projects/DemoCan/platforms/raspi/CMakeLists.txt @@ -1,4 +1,6 @@ target_sources(bindings -PRIVATE + PRIVATE bindings.cc -) \ No newline at end of file +) + +target_include_libraries(bindings PUBLIC ${CMAKE_SOURCE_DIR}) diff --git a/firmware/projects/DemoCan/platforms/raspi/mcal_conf.cmake b/firmware/projects/DemoCan/platforms/raspi/mcal_conf.cmake new file mode 100644 index 000000000..4eee2179f --- /dev/null +++ b/firmware/projects/DemoCan/platforms/raspi/mcal_conf.cmake @@ -0,0 +1,3 @@ +# This file determines which mcal folder is included so that the mcal library +# can be linked to `bindings`. +set(MCAL raspi) \ No newline at end of file diff --git a/firmware/projects/DemoCan/platforms/windows/mcal_conf.cmake b/firmware/projects/DemoCan/platforms/windows/mcal_conf.cmake new file mode 100644 index 000000000..973221885 --- /dev/null +++ b/firmware/projects/DemoCan/platforms/windows/mcal_conf.cmake @@ -0,0 +1,3 @@ +# This file determines which mcal folder is included so that the mcal library +# can be linked to `bindings`. +set(MCAL windows) \ No newline at end of file