From 94d90dd045463a540fe14880b1c04e2ce44a1efe Mon Sep 17 00:00:00 2001 From: ancarola Date: Mon, 11 Feb 2019 12:48:58 +0100 Subject: CMakeLists: include fixes, include tree structure modified --- CMakeLists.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c31e16b..6e7d073 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,8 +63,20 @@ install(TARGETS mm set_target_properties(mm PROPERTIES EXPORT_NAME MM) + +if ("${CMAKE_SYSTEM}" MATCHES "Linux") + +# too bad but no other simpler choise +file(GLOB INCLUDE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/*") + # install public headers -install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) +install(FILES ${INCLUDE_FILES} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/mm +) + +endif() + +# TODO, install setup for windows too # export targets install(EXPORT mm-targets -- cgit v1.2.1