vcpkg/ports/cimg/CMakeLists.txt
Frank 567d3b650d
[CImg] Update and install the header files (#35222)
* [CImg] Update and install the header files

* version

* update portfile.cmake

* version
2023-11-29 01:15:20 -08:00

25 lines
612 B
CMake

CMAKE_MINIMUM_REQUIRED(VERSION 3.9)
project(CImg)
add_library(${PROJECT_NAME} INTERFACE)
target_include_directories(${PROJECT_NAME} INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
install(TARGETS ${PROJECT_NAME}
EXPORT CImgExport
INCLUDES DESTINATION include
)
install(EXPORT CImgExport FILE ${PROJECT_NAME}Config.cmake NAMESPACE ${PROJECT_NAME}:: DESTINATION share/cimg)
install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/CImg.h
DESTINATION include
)
install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/plugins DESTINATION include)