I am trying to include different types of libraries in CMake.
Finally, I got both .a
and .dylib
to work with this code.
find_library(libname NAMES libcef.dylib PATHS ${libname_PATH})
along with this, under i add_executable
to initialize all my files for assembly.
target_link_libraries(${PROJECT_NAME} ${libname})
However, I tried using the same code in the .so
file, and it does not seem to work.
I get this expression from cmake when I try to create.
Target "project name" links to item -- path of file -- which is a full-path but not a valid library file name.
I'm not sure if this is the correct way to handle .so
files, or maybe I donβt even understand what .so
. Any input and / or clarification would be greatly appreciated.
edit:
THEORY - My theory is that it does not have a library name before the name of the library name, which is called ffmpegsumo.so. However, when I try to rename it, the file name still saves the variable name very strange.
source share