1 2 3 4 5 6
set(CMAKE_SUPPRESS_REGENERATION 1) project(LIB1) set(SOURCES lib1.cpp) add_library(lib1 ${SOURCES})