From 2393c4b437c6da86168113030fb65fdc4eb10a7a Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Tue, 21 Jun 2016 10:30:16 +0200 Subject: [PATCH] buildsystem: install pdb files alongside libs with VS debug builds --- algorithms_cpp/CMakeLists.txt | 5 +++++ base_c/CMakeLists.txt | 5 +++++ base_cpp/CMakeLists.txt | 5 +++++ containers_cpp/CMakeLists.txt | 5 +++++ dataflow_cpp/CMakeLists.txt | 5 +++++ mtapi_c/CMakeLists.txt | 5 +++++ mtapi_cpp/CMakeLists.txt | 5 +++++ mtapi_plugins_c/mtapi_network_c/CMakeLists.txt | 5 +++++ mtapi_plugins_c/mtapi_opencl_c/CMakeLists.txt | 5 +++++ tasks_cpp/CMakeLists.txt | 5 +++++ 10 files changed, 50 insertions(+) diff --git a/algorithms_cpp/CMakeLists.txt b/algorithms_cpp/CMakeLists.txt index 5378bd3..b2b0163 100644 --- a/algorithms_cpp/CMakeLists.txt +++ b/algorithms_cpp/CMakeLists.txt @@ -36,3 +36,8 @@ endif() install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/embb DESTINATION include FILES_MATCHING PATTERN "*.h") install(TARGETS embb_algorithms_cpp DESTINATION lib) +if (MSVC) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/embb_algorithms_cpp.pdb + DESTINATION lib + CONFIGURATIONS Debug) +endif() diff --git a/base_c/CMakeLists.txt b/base_c/CMakeLists.txt index a05179d..6b2f536 100644 --- a/base_c/CMakeLists.txt +++ b/base_c/CMakeLists.txt @@ -122,3 +122,8 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/embb install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/embb DESTINATION include FILES_MATCHING PATTERN "*.h") install(TARGETS embb_base_c DESTINATION lib) +if (MSVC) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/embb_base_c.pdb + DESTINATION lib + CONFIGURATIONS Debug) +endif() diff --git a/base_cpp/CMakeLists.txt b/base_cpp/CMakeLists.txt index e7cfd27..020e0b4 100644 --- a/base_cpp/CMakeLists.txt +++ b/base_cpp/CMakeLists.txt @@ -46,3 +46,8 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/embb install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/embb DESTINATION include FILES_MATCHING PATTERN "*.h") install(TARGETS embb_base_cpp DESTINATION lib) +if (MSVC) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/embb_base_cpp.pdb + DESTINATION lib + CONFIGURATIONS Debug) +endif() diff --git a/containers_cpp/CMakeLists.txt b/containers_cpp/CMakeLists.txt index 014d2d3..fdfca25 100644 --- a/containers_cpp/CMakeLists.txt +++ b/containers_cpp/CMakeLists.txt @@ -31,3 +31,8 @@ endif() install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/embb DESTINATION include FILES_MATCHING PATTERN "*.h") install(TARGETS embb_containers_cpp DESTINATION lib) +if (MSVC) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/embb_containers_cpp.pdb + DESTINATION lib + CONFIGURATIONS Debug) +endif() diff --git a/dataflow_cpp/CMakeLists.txt b/dataflow_cpp/CMakeLists.txt index 657d4bd..f801ce2 100644 --- a/dataflow_cpp/CMakeLists.txt +++ b/dataflow_cpp/CMakeLists.txt @@ -34,3 +34,8 @@ endif() install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include FILES_MATCHING PATTERN "*.h") install(TARGETS embb_dataflow_cpp DESTINATION lib) +if (MSVC) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/embb_dataflow_cpp.pdb + DESTINATION lib + CONFIGURATIONS Debug) +endif() diff --git a/mtapi_c/CMakeLists.txt b/mtapi_c/CMakeLists.txt index 0e147b1..5c3bc16 100644 --- a/mtapi_c/CMakeLists.txt +++ b/mtapi_c/CMakeLists.txt @@ -39,3 +39,8 @@ endif() install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include FILES_MATCHING PATTERN "*.h") install(TARGETS embb_mtapi_c DESTINATION lib) +if (MSVC) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/embb_mtapi_c.pdb + DESTINATION lib + CONFIGURATIONS Debug) +endif() diff --git a/mtapi_cpp/CMakeLists.txt b/mtapi_cpp/CMakeLists.txt index 3a343f2..02ab00d 100644 --- a/mtapi_cpp/CMakeLists.txt +++ b/mtapi_cpp/CMakeLists.txt @@ -38,3 +38,8 @@ endif() install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include FILES_MATCHING PATTERN "*.h") install(TARGETS embb_mtapi_cpp DESTINATION lib) +if (MSVC) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/embb_mtapi_cpp.pdb + DESTINATION lib + CONFIGURATIONS Debug) +endif() diff --git a/mtapi_plugins_c/mtapi_network_c/CMakeLists.txt b/mtapi_plugins_c/mtapi_network_c/CMakeLists.txt index a23a903..8c4b63b 100644 --- a/mtapi_plugins_c/mtapi_network_c/CMakeLists.txt +++ b/mtapi_plugins_c/mtapi_network_c/CMakeLists.txt @@ -45,3 +45,8 @@ endif() install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include FILES_MATCHING PATTERN "*.h") install(TARGETS embb_mtapi_network_c DESTINATION lib) +if (MSVC) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/embb_mtapi_network_c.pdb + DESTINATION lib + CONFIGURATIONS Debug) +endif() diff --git a/mtapi_plugins_c/mtapi_opencl_c/CMakeLists.txt b/mtapi_plugins_c/mtapi_opencl_c/CMakeLists.txt index 7dd94de..91b8f87 100644 --- a/mtapi_plugins_c/mtapi_opencl_c/CMakeLists.txt +++ b/mtapi_plugins_c/mtapi_opencl_c/CMakeLists.txt @@ -45,3 +45,8 @@ endif() install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include FILES_MATCHING PATTERN "*.h") install(TARGETS embb_mtapi_opencl_c DESTINATION lib) +if (MSVC) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/embb_mtapi_opencl_c.pdb + DESTINATION lib + CONFIGURATIONS Debug) +endif() diff --git a/tasks_cpp/CMakeLists.txt b/tasks_cpp/CMakeLists.txt index 397be86..ae6f6a8 100644 --- a/tasks_cpp/CMakeLists.txt +++ b/tasks_cpp/CMakeLists.txt @@ -44,3 +44,8 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/ DESTINATION include FILES_MATCHING PATTERN "*.h") install(TARGETS embb_tasks_cpp DESTINATION lib) +if (MSVC) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/embb_tasks_cpp.pdb + DESTINATION lib + CONFIGURATIONS Debug) +endif() -- libgit2 0.26.0