1 2 3 4
cmake_minimum_required(VERSION 3.0) project(CxxSubdirC CXX) add_subdirectory(Cdir) add_executable(CxxSubdirC main.cxx $<TARGET_OBJECTS:Cobj>)