menu_book Course Curriculum (CMake) expand_more
Foundations
Variables & Flow
Targets
Linking & Usage Requirements
Dependencies
Configuration
Build Automation
target_sources
Learn target_sources in CMake with a dedicated explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Intermediate
cmake-024.cmake
cmake
add_executable(app src/main.cpp)
target_sources(app PRIVATE src/order.cpp src/customer.cpp)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content