diff options
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/build/build.py | 2 | ||||
-rw-r--r-- | cmake/examples/boost/CMakeLists.txt | 3 | ||||
-rw-r--r-- | cmake/examples/dynamic/CMakeLists.txt | 3 | ||||
-rw-r--r-- | cmake/examples/simple/CMakeLists.txt | 3 | ||||
-rw-r--r-- | cmake/examples/static/CMakeLists.txt | 3 |
5 files changed, 14 insertions, 0 deletions
diff --git a/cmake/build/build.py b/cmake/build/build.py index e256b72..695489b 100755 --- a/cmake/build/build.py +++ b/cmake/build/build.py @@ -55,6 +55,8 @@ def _run_cmake(cmake_args): class Configuration(Enum): DEBUG = 'Debug' + MINSIZEREL = 'MinSizeRel' + RELWITHDEBINFO = 'RelWithDebInfo' RELEASE = 'Release' def __str__(self): diff --git a/cmake/examples/boost/CMakeLists.txt b/cmake/examples/boost/CMakeLists.txt index b73fcee..8c076c9 100644 --- a/cmake/examples/boost/CMakeLists.txt +++ b/cmake/examples/boost/CMakeLists.txt @@ -9,3 +9,6 @@ add_executable(foo foo.cpp) target_link_libraries(foo PRIVATE Boost::disable_autolinking Boost::filesystem) install(TARGETS foo RUNTIME DESTINATION bin) +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + install(FILES "$<TARGET_PDB_FILE:foo>" DESTINATION bin OPTIONAL) +endif() diff --git a/cmake/examples/dynamic/CMakeLists.txt b/cmake/examples/dynamic/CMakeLists.txt index 1a602d6..4602adb 100644 --- a/cmake/examples/dynamic/CMakeLists.txt +++ b/cmake/examples/dynamic/CMakeLists.txt @@ -11,3 +11,6 @@ add_executable(foo foo.cpp) target_link_libraries(foo PRIVATE baz) install(TARGETS foo baz RUNTIME DESTINATION bin LIBRARY DESTINATION lib) +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + install(FILES "$<TARGET_PDB_FILE:foo>" "$<TARGET_PDB_FILE:baz>" DESTINATION bin OPTIONAL) +endif() diff --git a/cmake/examples/simple/CMakeLists.txt b/cmake/examples/simple/CMakeLists.txt index 5f42914..4f8859e 100644 --- a/cmake/examples/simple/CMakeLists.txt +++ b/cmake/examples/simple/CMakeLists.txt @@ -7,3 +7,6 @@ include(../../common.cmake) add_executable(foo foo.cpp) install(TARGETS foo RUNTIME DESTINATION bin) +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + install(FILES "$<TARGET_PDB_FILE:foo>" DESTINATION bin OPTIONAL) +endif() diff --git a/cmake/examples/static/CMakeLists.txt b/cmake/examples/static/CMakeLists.txt index 5b76e22..8a6acb8 100644 --- a/cmake/examples/static/CMakeLists.txt +++ b/cmake/examples/static/CMakeLists.txt @@ -11,3 +11,6 @@ add_executable(foo foo.cpp) target_link_libraries(foo PRIVATE bar) install(TARGETS foo bar RUNTIME DESTINATION bin ARCHIVE DESTINATION lib) +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + install(FILES "$<TARGET_PDB_FILE:foo>" DESTINATION bin OPTIONAL) +endif() |