From 6012b1ef5a3caf223b3d15be73ef75a848c781c9 Mon Sep 17 00:00:00 2001 From: Iason Date: Thu, 4 Feb 2021 16:06:39 +0200 Subject: [PATCH] Uses local mysources dir if available. --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b30098a..30f6fae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,9 @@ download_project(PROJ MATPLOTPLUSPLUS ) add_subdirectory(${MATPLOTPLUSPLUS_SOURCE_DIR}) +if (EXISTS ${MYSOURCES_SOURCE_DIR}) +set(MYSOURCES_SOURCE_DIR "/home/iason/Coding/Libraries/MySources") +else() ##MySources download_project(PROJ MYSOURCES GIT_REPOSITORY https://gitea-s2i2s.isti.cnr.it/manolas/MySources.git @@ -32,6 +35,9 @@ download_project(PROJ MYSOURCES ${UPDATE_DISCONNECTED_IF_AVAILABLE} ) +endif() + + #Polyscope download_project(PROJ POLYSCOPE GIT_REPOSITORY https://github.com/nmwsharp/polyscope.git @@ -66,7 +72,6 @@ find_package(Eigen3 3.3 REQUIRED) #OpenMP find_package(OpenMP) -#set(MYSOURCESDIR "/home/iason/Coding/Libraries/MySources") file(GLOB MYSOURCES ${MYSOURCES_SOURCE_DIR}/*.hpp ${MYSOURCES_SOURCE_DIR}/*.cpp ) #Add the project sources