diff --git a/CMakeLists.txt b/CMakeLists.txt index a017c61..b87e7a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,6 +121,7 @@ add_module(RBcore project/RBcore OFF OFF) add_module(optional optional OFF OFF) add_module(Spoolend project/Spoolend OFF OFF) add_module(Spoolold project/Spoolold OFF OFF) +add_module(paint_robot_old project/paint_robot_old OFF OFF) if(A_BUILD_MAIN) add_subdirectory(main) diff --git a/project/paint_robot_old/CMakeLists.txt b/project/paint_robot_old/CMakeLists.txt new file mode 100644 index 0000000..8e60a3f --- /dev/null +++ b/project/paint_robot_old/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.10) + +get_filename_component(TARGET_NAME "${CMAKE_CURRENT_SOURCE_DIR}" NAME) + +set(COMMON_CMAKE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../library/CMakeLists.txt") + +if(EXISTS "${COMMON_CMAKE_PATH}") + include("${COMMON_CMAKE_PATH}") +else() + message(FATAL_ERROR "Cannot find common build logic at ${COMMON_CMAKE_PATH}") +endif() + +if(TARGET stm32cubemx) + target_link_libraries(${TARGET_NAME} PUBLIC stm32cubemx) +else() + message(WARNING "[${TARGET_NAME}] Dependency 'stm32cubemx' not found.") +endif() \ No newline at end of file