diff --git a/CMakeLists.txt b/CMakeLists.txt index a033ddd..3b55ab3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,6 @@ target_link_directories(${CMAKE_PROJECT_NAME} PRIVATE # Add sources to executable target_sources(${CMAKE_PROJECT_NAME} PRIVATE # Add user sources here - ) # Add include paths diff --git a/Core/driver/CMakeLists.txt b/Core/driver/CMakeLists.txt index d867330..7d74cbe 100644 --- a/Core/driver/CMakeLists.txt +++ b/Core/driver/CMakeLists.txt @@ -1,12 +1,13 @@ -add_subdirectory(led) - add_library(driver INTERFACE) -target_link_libraries(driver INTERFACE led_lib) -target_sources(driver INTERFACE ./base/interface.cpp) -target_include_directories(driver INTERFACE ./base) +add_subdirectory(led) if (DRIVER_CPP) add_subdirectory(base/gpio) target_compile_definitions(driver INTERFACE DRIVER_CPP) endif () +target_link_libraries(driver INTERFACE led_lib) +target_sources(driver INTERFACE ./base/interface.cpp) +target_include_directories(driver INTERFACE ./base) + + diff --git a/Core/driver/led/include/led.h b/Core/driver/led/include/led.h index c08a567..e8f9787 100644 --- a/Core/driver/led/include/led.h +++ b/Core/driver/led/include/led.h @@ -9,9 +9,6 @@ #include "main.h" #ifdef __cplusplus extern "C" { - - - #endif typedef struct { GPIO_TypeDef *port;