cmake_minimum_required(VERSION 3.7) project(cmObject CXX) add_library(lib_obj OBJECT libA.cpp libB.cpp) add_library(lib_sha SHARED $) add_library(lib_sta STATIC $)