pineapple-src/externals/vcpkg/ports/cimg/CMakeLists.txt

22 lines
531 B
Text
Raw Normal View History

2022-07-23 03:01:36 +02:00
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
)