I want to create a .dll
library with all its dependencies packed inside the .dll
.
However, there seems to be no easy way to achieve that with Cmake. My setup:
cmake_minimum_required(VERSION 3.0.0)
project(Main VERSION 0.1.0)
add_library(Main SHARED Main.cpp)
find_package(libzippp REQUIRED)
target_link_libraries(Main PRIVATE libzippp::libzippp)
This will produce both Main.dll
but also libzippp.dll
.
I would like to have libzippp.dll
packed (statically linked) into Main.dll
.