support INCLUDE_INSTALL_DIR too

This commit is contained in:
Rex Dieter 2015-11-13 13:19:10 -06:00
parent ea7828fca3
commit d0abe84cb3

View file

@ -147,6 +147,10 @@ if (NOT BIN_INSTALL_DIR)
set(BIN_INSTALL_DIR bin) set(BIN_INSTALL_DIR bin)
endif () endif ()
if (NOT INCLUDE_INSTALL_DIR)
set(INCLUDE_INSTALL_DIR include)
endif ()
# Always build the STATIC library # Always build the STATIC library
set(name tidy-static) set(name tidy-static)
add_library ( ${name} STATIC ${CFILES} ${HFILES} ${LIBHFILES} ) add_library ( ${name} STATIC ${CFILES} ${HFILES} ${LIBHFILES} )
@ -159,7 +163,7 @@ install(TARGETS ${name}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
LIBRARY DESTINATION ${LIB_INSTALL_DIR} LIBRARY DESTINATION ${LIB_INSTALL_DIR}
) )
install( FILES ${HFILES} DESTINATION include ) install( FILES ${HFILES} DESTINATION ${INCLUDE_INSTALL_DIR} )
######################################## ########################################
# if user option still on # if user option still on
if (BUILD_SHARED_LIB) if (BUILD_SHARED_LIB)