cmake_minimum_required(VERSION 3.5) add_executable(IO-a a.cpp b.cpp) add_executable(IO-b b.cpp a.cpp)