Fixed cmake header file installation flattening include subdirectories

This commit is contained in:
Snaipe 2015-11-18 13:20:03 +01:00
parent f656fb4279
commit eb36959023

View file

@ -247,7 +247,11 @@ if (COVERALLS)
coveralls_setup("${SOURCE_FILES}" ${COVERALLS_UPLOAD})
endif()
install(FILES ${INTERFACE_FILES} DESTINATION include/criterion)
foreach (F ${INTERFACE_FILES})
get_filename_component(DEST "${F}" DIRECTORY)
install(FILES "${F}" DESTINATION "${DEST}")
endforeach ()
install(TARGETS criterion
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib