Added macro for polyscope

This commit is contained in:
Iason 2021-02-22 19:23:11 +02:00
parent 8888b28163
commit 43f28adb1d
1 changed files with 3 additions and 5 deletions

View File

@ -24,7 +24,7 @@ download_project(PROJ MATPLOTPLUSPLUS
)
add_subdirectory(${MATPLOTPLUSPLUS_SOURCE_DIR})
set(MYSOURCES_SOURCE_DIR "/home/iason/Coding/Libraries/MySources")
#set(MYSOURCES_SOURCE_DIR "/home/iason/Coding/Libraries/MySources")
if (EXISTS ${MYSOURCES_SOURCE_DIR})
else()
##MySources
@ -46,6 +46,7 @@ download_project(PROJ POLYSCOPE
${UPDATE_DISCONNECTED_IF_AVAILABLE}
)
add_subdirectory(${POLYSCOPE_SOURCE_DIR})
add_compile_definitions(POLYSCOPE_DEFINED)
#dlib
download_project(PROJ DLIB
@ -69,9 +70,6 @@ file(GLOB EXT_SOURCES ${vcglib_devel_SOURCE_DIR}/wrap/ply/plylib.cpp)
##Eigen 3 NOTE: Eigen is required on the system the code is ran
find_package(Eigen3 3.3 REQUIRED)
#OpenMP
find_package(OpenMP)
file(GLOB MYSOURCES ${MYSOURCES_SOURCE_DIR}/*.hpp ${MYSOURCES_SOURCE_DIR}/*.cpp
)
#Add the project sources
@ -91,4 +89,4 @@ target_include_directories(${PROJECT_NAME}
)
link_directories(${MYSOURCES_SOURCE_DIR}/boost_graph/libs)
target_link_libraries(${PROJECT_NAME} polyscope Eigen3::Eigen OpenMP::OpenMP_CXX matplot dlib::dlib)
target_link_libraries(${PROJECT_NAME} polyscope Eigen3::Eigen matplot dlib::dlib)