[CMake] get name of .lib file

2011-11-07 Thread Tomasz Grobelny
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

Re: [CMake] get name of .lib file

2011-11-07 Thread Tim Gallagher
: [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

Re: [CMake] get name of .lib file

2011-11-07 Thread Tomasz Grobelny
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

Re: [CMake] get name of .lib file

2011-11-07 Thread Michael Hertling
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