@@ -0,0 +1,39 @@
1+diff --git a/CMakeLists.txt b/CMakeLists.txt
2+index fe7abe08..acdbe0d6 100644
3+--- a/CMakeLists.txt
4++++ b/CMakeLists.txt
5+@@ -13,7 +13,6 @@ find_program(CARGO cargo)
6+
7+ add_custom_command(
8+ OUTPUT
9+- "target/release/libdeltachat.a"
10+ "target/release/libdeltachat.${DYNAMIC_EXT}"
11+ "target/release/pkgconfig/deltachat.pc"
12+ COMMAND
13+@@ -38,13 +37,11 @@ add_custom_target(
14+ lib_deltachat
15+ ALL
16+ DEPENDS
17+- "target/release/libdeltachat.a"
18+ "target/release/libdeltachat.${DYNAMIC_EXT}"
19+ "target/release/pkgconfig/deltachat.pc"
20+ )
21+
22+ include(GNUInstallDirs)
23+ install(FILES "deltachat-ffi/deltachat.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
24+-install(FILES "target/release/libdeltachat.a" DESTINATION ${CMAKE_INSTALL_LIBDIR})
25+ install(FILES "target/release/libdeltachat.${DYNAMIC_EXT}" DESTINATION ${CMAKE_INSTALL_LIBDIR})
26+ install(FILES "target/release/pkgconfig/deltachat.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
27+diff --git a/deltachat-ffi/Cargo.toml b/deltachat-ffi/Cargo.toml
28+index a34a27ba..cf354abb 100644
29+--- a/deltachat-ffi/Cargo.toml
30++++ b/deltachat-ffi/Cargo.toml
31+@@ -12,7 +12,7 @@ categories = ["cryptography", "std", "email"]
32+
33+ [lib]
34+ name = "deltachat"
35+-crate-type = ["cdylib", "staticlib"]
36++crate-type = ["cdylib"]
37+
38+ [dependencies]
39+ deltachat = { path = "../", default-features = false }