# Set the project name project (subproject2) # Create a sources variable with a link to all cpp files to compile set(SOURCES main2.cpp ) # Add an executable with the above sources add_executable(${PROJECT_NAME} ${SOURCES})