No rule to make target for Shared Imported library

Hello I am using the following cmake file.

  message(STATUS "Linking to x64 openssl folder")
  #link_directories(${CMAKE_SOURCE_DIR}/source/openssl/lib/x64)
  add_library(libcrypto SHARED IMPORTED GLOBAL)
  #set_property(TARGET libcrypto PROPERTY IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/source/openssl/lib/x64/libcrypto-1_1-x64.dll)
  set_property(TARGET libcrypto PROPERTY IMPORTED_IMPLIB_DEBUG ${CMAKE_SOURCE_DIR}/source/openssl/lib/x64/libcrypto.lib)
  set_property(TARGET libcrypto PROPERTY IMPORTED_IMPLIB_RELEASE ${CMAKE_SOURCE_DIR}/source/openssl/lib/x64/libcrypto.lib)

  add_library(libssl SHARED IMPORTED GLOBAL)
  #set_property(TARGET libssl PROPERTY IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/source/openssl/lib/x64/libssl-1_1-x64.dll)
  set_property(TARGET libssl PROPERTY IMPORTED_IMPLIB_DEBUG ${CMAKE_SOURCE_DIR}/source/openssl/lib/x64/libssl.lib)
  set_property(TARGET libssl PROPERTY IMPORTED_IMPLIB_RELEASE ${CMAKE_SOURCE_DIR}/source/openssl/lib/x64/libssl.lib)

In the end of my compile process I get:

[100%] Building CXX object CMakeFiles/MyExecutable.dir/getopt.cpp.obj
mingw32-make.exe[2]: *** No rule to make target '../source/openssl/lib/x64/libcrypto.lib', needed by 'MyExecutable.exe'.  Stop.
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:476: CMakeFiles/MyExecutable.dir/all] Error 2
mingw32-make.exe: *** [Makefile:90: all] Error 2

Anyone has any idea what is happening? In the parent file my target_link_libraries looks like this:

target_link_libraries(MyExecutable
  PUBLIC
  libA
  libB
  libC
  ...
  libN
  ...
  libcrypto
  libssl)

Does anyone have any idea what is happening?

Hi, if you print out the value of ${CMAKE_SOURCE_DIR}/source/openssl/lib/x64/libcrypto.lib, is the library actually there on disk?