Install debug files

As part of a -dev package, we would like to install the debug symbols
together with the headers.
This commit is contained in:
Roland Kaufmann
2013-01-23 00:57:50 +01:00
parent 8b4a5969c0
commit 6ad5ebeffe

View File

@@ -187,7 +187,7 @@ set_target_properties (opmcore PROPERTIES
target_link_libraries (opmcore ${opm-core_LIBRARIES})
# queue this executable to be stripped
strip_debug_symbols (opmcore)
strip_debug_symbols (opmcore opm-core_DEBUG)
# we need to know the name of the library which is generated
get_target_property (opm-core_LIBRARY opmcore LOCATION)
@@ -222,6 +222,10 @@ install (
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
install (
FILES ${PROJECT_BINARY_DIR}/${opm-core_DEBUG}
DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
install (
FILES dune.module
DESTINATION ${CMAKE_INSTALL_LIBDIR_NOARCH}/dunecontrol/opm-core