I have a library created like this:
add_library(mylib SHARED ${SOURCES} ${PRIVATE_HEADERS}
${PUBLIC_HEADERS})
Now I want to get names of all output files for mylib target (on Unix this
would be .so file, but on Windows it would be .dll, .lib and possibly .pdb
files). Is there any better way to
: [CMake] get name of .lib file
I have a library created like this:
add_library(mylib SHARED ${SOURCES} ${PRIVATE_HEADERS}
${PUBLIC_HEADERS})
Now I want to get names of all output files for mylib target (on Unix this
would be .so file, but on Windows it would be .dll, .lib and possibly .pdb
files
To: cmake@cmake.org
Sent: Monday, November 7, 2011 8:23:10 AM
Subject: [CMake] get name of .lib file
I have a library created like this:
add_library(mylib SHARED ${SOURCES} ${PRIVATE_HEADERS}
${PUBLIC_HEADERS})
Now I want to get names of all output files for mylib target (on Unix
this
would
On 11/07/2011 05:55 PM, Tomasz Grobelny wrote:
Thanks. But it still means that I have to construct the .lib file name
sort of manually. And possibly put some IF(WIN32)'s in my CMakeLists.txt. I
would much prefer to have a list of all files that were produced by given
target.
Getting such a