add_library(ssllibSHAREDIMPORTED)add_library(cryptolibSHAREDIMPORTED)#May have different dependent librariesset(libsuffix${CMAKE_SYSTEM_NAME}_${CMAKE_SYSTEM_PROCESSOR})set_target_properties(ssllibPROPERTIESIMPORTED_LOCATION"${project_top_dir}contrib/openssl/lib/libssl-${libsuffix}.so")set_target_properties(cryptolibPROPERTIESIMPORTED_LOCATION"${project_top_dir}contrib/openssl/lib/libcrypto-${libsuffix}.so")//........................#other CMakeLists.txtadd_executable(myExesrc1src2)target_link_libraries(myExessllibcryptolib)