mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 05:29:00 +08:00
21 lines
641 B
Diff
21 lines
641 B
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 4dd67df..3840ff8 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -84,6 +84,7 @@ set_target_properties(iir PROPERTIES
|
||
|
PUBLIC_HEADER Iir.h
|
||
|
PRIVATE_HEADER "${LIBINCLUDE}")
|
||
|
|
||
|
+if(BUILD_SHARED_LIBS)
|
||
|
install(TARGETS iir EXPORT iir-targets
|
||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||
|
@@ -91,6 +92,7 @@ install(TARGETS iir EXPORT iir-targets
|
||
|
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||
|
PRIVATE_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/iir)
|
||
|
+endif()
|
||
|
|
||
|
include(JoinPaths)
|
||
|
|