split config now
This commit is contained in:
@@ -15,9 +15,18 @@ add_subdirectory(${MBED_PATH})
|
||||
|
||||
add_executable(${APP_TARGET})
|
||||
|
||||
# Recursively collect all .cpp files under src/
|
||||
file(GLOB_RECURSE SRC_FILES CONFIGURE_DEPENDS "src/*.cpp")
|
||||
|
||||
target_sources(${APP_TARGET}
|
||||
PRIVATE
|
||||
main.cpp
|
||||
${SRC_FILES}
|
||||
)
|
||||
|
||||
# Make includes of headers work
|
||||
target_include_directories(${APP_TARGET}
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src
|
||||
)
|
||||
|
||||
target_link_libraries(${APP_TARGET}
|
||||
|
||||
Reference in New Issue
Block a user