support INCLUDE_INSTALL_DIR too

This commit is contained in:
Rex Dieter 2015-11-13 13:19:10 -06:00
parent ea7828fca3
commit d0abe84cb3
1 changed files with 5 additions and 1 deletions

View File

@ -147,6 +147,10 @@ if (NOT BIN_INSTALL_DIR)
set(BIN_INSTALL_DIR bin)
endif ()
if (NOT INCLUDE_INSTALL_DIR)
set(INCLUDE_INSTALL_DIR include)
endif ()
# Always build the STATIC library
set(name tidy-static)
add_library ( ${name} STATIC ${CFILES} ${HFILES} ${LIBHFILES} )
@ -159,7 +163,7 @@ install(TARGETS ${name}
ARCHIVE 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 (BUILD_SHARED_LIB)