add_library(mylib_fake SHARED mylib.cpp) set_target_properties(mylib_fake PROPERTIES OUTPUT_NAME mylib)