Merge pull request #82 from adrianbroher/install-pdb

Install MSVC program database when building `Debug` or `RelWithDebInfo` configuration
This commit is contained in:
Nigel Stewart 2016-05-21 08:02:04 +10:00
commit 3ef1c134c4

View File

@ -191,6 +191,14 @@ install(FILES ${GLEW_DIR}/glew.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
) )
if((NOT MSVC_VERSION LESS 1600) AND (NOT CMAKE_VERSION VERSION_LESS "3.1"))
install(
FILES $<TARGET_PDB_FILE:glew>
DESTINATION ${CMAKE_INSTALL_LIBDIR}
CONFIGURATIONS Debug RelWithDebInfo
)
endif()
install (FILES install (FILES
${GLEW_DIR}/include/GL/wglew.h ${GLEW_DIR}/include/GL/wglew.h
${GLEW_DIR}/include/GL/glew.h ${GLEW_DIR}/include/GL/glew.h