Automatically install VLD to example output folder.
This commit is contained in:
@@ -13,3 +13,11 @@ add_executable(${TARGET_NAME} ${SRCS})
|
||||
|
||||
target_link_libraries(${TARGET_NAME} webcc jsoncpp ${Boost_LIBRARIES})
|
||||
target_link_libraries(${TARGET_NAME} "${CMAKE_THREAD_LIBS_INIT}")
|
||||
|
||||
# Install VLD DLLs to build dir so that the example can be launched from
|
||||
# inside VS.
|
||||
if(WEBCC_ENABLE_VLD)
|
||||
install(DIRECTORY ${THIRD_PARTY_DIR}/win32/bin/debug/vld/
|
||||
CONFIGURATIONS Debug
|
||||
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Debug)
|
||||
endif()
|
||||
|
||||
@@ -5,11 +5,6 @@
|
||||
|
||||
#include "example/rest_book_server/services.h"
|
||||
|
||||
// In order to run with VLD, please copy the following files to the example
|
||||
// output folder from "third_party\win32\bin":
|
||||
// - dbghelp.dll
|
||||
// - Microsoft.DTfW.DHL.manifest
|
||||
// - vld_x86.dll
|
||||
#if (defined(WIN32) || defined(_WIN64))
|
||||
#if defined(_DEBUG) && defined(WEBCC_ENABLE_VLD)
|
||||
#pragma message ("< include vld.h >")
|
||||
|
||||
Reference in New Issue
Block a user