[CMake] Adding .pdb files to CPack (Visual Studio 7 generator)
Hendrik Sattler
post at hendrik-sattler.de
Tue Sep 18 11:22:43 EDT 2007
Am Dienstag 18 September 2007 schrieb Torsten Martinsen:
> In a macro, I succesfully use
>
> INSTALL(
> TARGETS ${project}
> RUNTIME DESTINATION bin)
>
> to add my .exe file to the list of files included by CPack. I also want
> the .pdb file, so I tried
>
> INSTALL(
> FILES
> ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${project}.pdb
> RUNTIME DESTINATION bin)
>
> This, unfortunately, gives the error
>
> FILE INSTALL cannot find file
> "C:/user/gh/ais/impl/build/cmake/vc7/ca/$(OutDir)/ca.pdb" to install.
>
> Note that ${CMAKE_CFG_INTDIR} expands to "$(OutDir)" instead of e.g.
> "Debug" as I had hoped.
Did you try using the LOCATION property of the TARGET stripping the extension
and using that?
HS
More information about the CMake
mailing list