diff options
Diffstat (limited to '')
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | CMakeLists.txt | 14 | ||||
-rw-r--r-- | include/mm (renamed from include/mm.hpp) | 0 | ||||
-rw-r--r-- | include/mmvec.hpp (renamed from include/mm/mmvec.hpp) | 0 |
4 files changed, 14 insertions, 1 deletions
@@ -1,2 +1,3 @@ build .ninja* +CMakeFiles 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 diff --git a/include/mm.hpp b/include/mm index 7e9f02b..7e9f02b 100644 --- a/include/mm.hpp +++ b/include/mm diff --git a/include/mm/mmvec.hpp b/include/mmvec.hpp index db3c390..db3c390 100644 --- a/include/mm/mmvec.hpp +++ b/include/mmvec.hpp |