Uses local mysources dir if available.

This commit is contained in:
Iason 2021-02-04 16:06:39 +02:00
parent 265680ea05
commit 6012b1ef5a
1 changed files with 6 additions and 1 deletions

View File

@ -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