Commit 85eae133 authored by Nicolas Mellado's avatar Nicolas Mellado

Add install target in CMakefile

parent d4ef1432
......@@ -42,6 +42,17 @@ endif()
add_subdirectory(Patate/common EXCLUDE_FROM_ALL)
#endif()
################################################################################
# Generate install target #
################################################################################
if (NOT INCLUDE_INSTALL_DIR)
set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include)
endif (NOT INCLUDE_INSTALL_DIR)
install(DIRECTORY Patate DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING REGEX ".*\\.(hpp|h)$")
message("Patate will be installed in ${INCLUDE_INSTALL_DIR}/Patate")
################################################################################
# Generate Vitelotte's shaders #
# TODO: find a more appropriate place for this. #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment