Hi!
I have lib files in directory, so I set
set(MYLIBSDIR "C:/Users/User1/Desktop/math_libs")
find_library(RESULT NAMES lib PATHS "${MYLIBSDIR}/lib")
message("RESULT: " ${RESULT})
libs name:
lib_trace.lib
and
lib_copy.lib
but it still outputs:
1> [CMake] RESULT3: RESULT3-NOTFOUND
how to tell cmake to look for library that begins with lib* ?
If I’m not mistaken I need to enter whole name of a lib and also whole path to directory where libs are, but if I enter full path to directory and full name of a lib
then what’s the point of find_library() ? Why find_library() isn’t recursively search into subdirectories?
Also as a sidenote:
can I found several libraries that fits my name pattern, e.g lib*, and then link them all with target_link_libraries() ?