Hi everyone,
I'm trying to configure CPack for packaging an executable and some
shared libraries the application depends on. Both application and
libraries are built by CMake. For NSIS, this works just fine, the
installer includes all necessary files. However, the CPack Debian
generator seems
2012/10/17 Benjamin Kloster :
> Hi everyone,
> I'm trying to configure CPack for packaging an executable and some shared
> libraries the application depends on. Both application and libraries are
> built by CMake. For NSIS, this works just fine, the installer includes all
> necessary files. However
Ha! I just found the solution. Apparently, you need to repeat the
"COMPONENT" in the install command for each destination, like so:
install(
TARGETS gdcp
LIBRARY DESTINATION lib COMPONENT gdcp_lib
RUNTIME DESTINATION bin COMPONENT gdcp_lib
)
This is also mentioned in the CMake docum