From 99eb9822b4dfa67f65674eac92f1371dc4be9d31 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 17 Jan 2020 23:53:16 +0300 Subject: support all 4 cmake default configurations --- cmake/examples/dynamic/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmake/examples/dynamic') 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 "$" "$" DESTINATION bin OPTIONAL) +endif() -- cgit v1.2.3