OpenMiInk/third_party/krita-deps-management/cmake/install_directory_custom.cmake
Hellings b8c8ff98e2 Hi
2026-10-16 09:05:56 -04:00

15 lines
455 B
CMake

# A script that automatically handles $ENV{DESTDIR} forwarding
#
# Usage:
# ${CMAKE_COMMAND} -DSRC=<SOURCE_DIR> -DDST=${EXTPREFIX}/bin -P ${CMAKE_SOURCE_DIR}/cmake/install_directory_custom.cmake
#
if (NOT EXISTS ${SRC})
message(FATAL_ERROR "Remove: Cannot file the source path: \"${SRC}\"")
endif()
file(GLOB ALL_SUBDIRS "${SRC}/*")
foreach (SUBDIR ${ALL_SUBDIRS})
file(INSTALL ${SUBDIR} DESTINATION ${DST} USE_SOURCE_PERMISSIONS)
endforeach()