How to configure CMakeLists.txt to install public headers of a shared library?
问题 I want to use cmake to install my library edv but when I execute: cmake --build . --target install It installs but it only creates the bin/edv.dll and lib/ < empty > . How can I make cmake to install the EDV_PUBLIC_INCLUDE_DIRECTORIES inside an include/... ? Here's my CMakeLists.txt : cmake_minimum_required(VERSION 3.12) project(edv) # include PUBLIC directories set(EDV_PUBLIC_INCLUDE_DIRECTORIES include/ ) set(EDV_PRIVATE_INCLUDE_DIRECTORIES src/ ) # Edv source files list file(GLOB_RECURSE