From c74446c3e6a88ffbb13743dcc9f3b93d10aa009d Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sun, 10 Feb 2019 22:41:15 +0100 Subject: Add CMake configuration, delete ninja files The new CMake configuration builds only static libraries --- cmake/MMConfig.cmake.in | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cmake/MMConfig.cmake.in (limited to 'cmake') diff --git a/cmake/MMConfig.cmake.in b/cmake/MMConfig.cmake.in new file mode 100644 index 0000000..c338eae --- /dev/null +++ b/cmake/MMConfig.cmake.in @@ -0,0 +1,9 @@ +get_filename_component(MM_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) + +list(REMOVE_AT CMAKE_MODULE_PATH -1) + +if (NOT TARGET MM::MM) + include("${MM_CMAKE_DIR}/MMTargets.cmake") +endif() + +set(MM_LIBRARIES MM::MM) -- cgit v1.2.1 From 2aa0371a6848b3aae4d4183eb7b4ae12558f820a Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 11 Feb 2019 00:11:16 +0100 Subject: Fix MMConfig.cmake.in --- cmake/MMConfig.cmake.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake') diff --git a/cmake/MMConfig.cmake.in b/cmake/MMConfig.cmake.in index c338eae..de91981 100644 --- a/cmake/MMConfig.cmake.in +++ b/cmake/MMConfig.cmake.in @@ -1,5 +1,9 @@ get_filename_component(MM_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +include(CMakeFindDependencyMacro) +list(APPEND CMAKE_MODULE_PATH ${MM_CMAKE_DIR}) +# add dependencies if needed +# add_dependency() list(REMOVE_AT CMAKE_MODULE_PATH -1) if (NOT TARGET MM::MM) -- cgit v1.2.1