summarylogtreecommitdiffstats
path: root/001-fix-shared-lib-install.diff
blob: fa612f68b30ebe513aaf0e9af8fde03b392fec28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c993e7c..96b907e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -82,6 +82,7 @@ if(SD_BUILD_SHARED_LIBS)
     add_library(${SD_LIB} SHARED ${SD_LIB_SOURCES})
     add_definitions(-DSD_BUILD_SHARED_LIB)
     target_compile_definitions(${SD_LIB} PRIVATE -DSD_BUILD_DLL)
+    install(TARGETS ${SD_LIB} LIBRARY)
     set(CMAKE_POSITION_INDEPENDENT_CODE ON)
 else()
     message("-- Build static library")