Create and install PDB debug symbols alongside binaries

This commit is contained in:
Jan Haller 2015-12-30 20:30:59 +01:00 committed by Lukas Dürrenberger
parent 687f260a46
commit 2bd897c513
2 changed files with 28 additions and 1 deletions

View file

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.3)
cmake_minimum_required(VERSION 3.1)
# define a macro that helps defining an option
macro(sfml_set_option var default type docstring)
@ -231,6 +231,11 @@ if(NOT SFML_BUILD_FRAMEWORKS)
DESTINATION .
COMPONENT devel
FILES_MATCHING PATTERN "*.hpp" PATTERN "*.inl")
install(DIRECTORY ${PROJECT_BINARY_DIR}/lib
DESTINATION .
COMPONENT devel
FILES_MATCHING PATTERN "*.pdb")
else()
# find only "root" headers
file(GLOB SFML_HEADERS RELATIVE ${PROJECT_SOURCE_DIR} "include/SFML/*")