add_subdirectory(bodies) add_daps_target(all_device_specs SOURCES avia0.dapss win0.dapss ) # Register this target for later dependency addition from main CMakeLists.txt register_daps_target(all_device_specs) # Make the DAPSS target part of the ALL target for this subdirectory # This ensures DAPSS targets are built when building just this subdirectory set_property(TARGET all_device_specs PROPERTY FOLDER "devices")