target_include_directories(cubemx PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) add_subdirectory(Legacy)