diff options
author | Nao Pross <naopross@thearcway.org> | 2019-02-11 14:24:59 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-02-11 14:24:59 +0100 |
commit | d14d1a12fa0a8c6f60385468f18f99d799d7a5db (patch) | |
tree | 6b5c2137dc38f8980904948096e2cae7870875a0 | |
parent | Small conflict solved (diff) | |
download | libmm-d14d1a12fa0a8c6f60385468f18f99d799d7a5db.tar.gz libmm-d14d1a12fa0a8c6f60385468f18f99d799d7a5db.zip |
Fix typos and other minor errors
-rw-r--r-- | CMakeLists.txt | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e7d073..c7918e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,10 +11,10 @@ list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake) ############################ # build libmm add_library(mm STATIC - mmvec.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/mmvec.cpp ) -add_library(MM:mm ALIAS mm) +add_library(MM::mm ALIAS mm) # set up headers target_include_directories(mm @@ -64,20 +64,15 @@ 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(FILES ${INCLUDE_FILES} - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/mm +install( + FILES + ${CMAKE_CURRENT_SOURCE_DIR}/include/mmvec.hpp + ${CMAKE_CURRENT_SOURCE_DIR}/include/mm + DESTINATION + ${CMAKE_INSTALL_INCLUDEDIR}/mm ) -endif() - -# TODO, install setup for windows too - # export targets install(EXPORT mm-targets FILE |