Static linking. Removed openmp and polyscope dependencies.
This commit is contained in:
parent
54af4a8b9f
commit
6c5d3a4255
|
@ -37,16 +37,6 @@ download_project(PROJ MYSOURCES
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
#Polyscope
|
|
||||||
download_project(PROJ POLYSCOPE
|
|
||||||
GIT_REPOSITORY https://github.com/nmwsharp/polyscope.git
|
|
||||||
GIT_TAG master
|
|
||||||
PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/build/external/
|
|
||||||
${UPDATE_DISCONNECTED_IF_AVAILABLE}
|
|
||||||
)
|
|
||||||
add_subdirectory(${POLYSCOPE_SOURCE_DIR})
|
|
||||||
|
|
||||||
#dlib
|
#dlib
|
||||||
download_project(PROJ DLIB
|
download_project(PROJ DLIB
|
||||||
GIT_REPOSITORY https://github.com/davisking/dlib.git
|
GIT_REPOSITORY https://github.com/davisking/dlib.git
|
||||||
|
@ -69,9 +59,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
|
##Eigen 3 NOTE: Eigen is required on the system the code is ran
|
||||||
find_package(Eigen3 3.3 REQUIRED)
|
find_package(Eigen3 3.3 REQUIRED)
|
||||||
|
|
||||||
#OpenMP
|
|
||||||
find_package(OpenMP)
|
|
||||||
|
|
||||||
file(GLOB MYSOURCES ${MYSOURCES_SOURCE_DIR}/*.hpp ${MYSOURCES_SOURCE_DIR}/*.cpp
|
file(GLOB MYSOURCES ${MYSOURCES_SOURCE_DIR}/*.hpp ${MYSOURCES_SOURCE_DIR}/*.cpp
|
||||||
)
|
)
|
||||||
#Add the project sources
|
#Add the project sources
|
||||||
|
@ -91,4 +78,4 @@ target_include_directories(${PROJECT_NAME}
|
||||||
)
|
)
|
||||||
|
|
||||||
link_directories(${MYSOURCES_SOURCE_DIR}/boost_graph/libs)
|
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} -static Eigen3::Eigen matplot dlib::dlib)
|
||||||
|
|
Loading…
Reference in New Issue