Commit 7ccdcdf8 authored by Pavel Burovskiy's avatar Pavel Burovskiy

Update to LibSMV cmake files

parent bed791ec
......@@ -164,6 +164,7 @@ INCLUDE (ThirdPartyArpack)
INCLUDE (ThirdPartyMPI)
INCLUDE (ThirdPartyVTK)
INCLUDE (ThirdPartyQT4)
INCLUDE (ThirdPartySMV)
IF( NEKTAR_USE_MKL )
INCLUDE (FindMKL)
......
SET(SMV_SEARCH_PATHS
${CMAKE_SOURCE_DIR}/ThirdParty/libsmv/lib
${CMAKE_SOURCE_DIR}/../ThirdParty/libsmv/lib
${CMAKE_SOURCE_DIR}/ThirdParty/dist/lib
${CMAKE_SOURCE_DIR}/../ThirdParty/dist/lib)
${CMAKE_SOURCE_DIR}/ThirdParty/libsmv/build/lib
${CMAKE_SOURCE_DIR}/../ThirdParty/libsmv/build/lib
${CMAKE_SOURCE_DIR}/ThirdParty/dist/build/lib
${CMAKE_SOURCE_DIR}/../ThirdParty/dist/build/lib)
FIND_PATH(SMV_INCLUDE_DIR NAMES smv.h PATHS ${SMV_SEARCH_PATHS})
FIND_LIBRARY(SMV_LIBRARY NAMES smv PATHS ${SMV_SEARCH_PATHS})
......
OPTION(THIRDPARTY_BUILD_SMV "Build LibSMV" OFF)
IF (THIRDPARTY_BUILD_SMV)
INCLUDE(ExternalProject)
EXTERNALPROJECT_ADD(
libsmvf1.0
PREFIX ${TPSRC}
URL ${TPURL}/libsmvf1.0.tar.gz
URL_MD5 "40cad0538acebd4aa83136ef9319150e"
DOWNLOAD_DIR ${TPSRC}
CONFIGURE_COMMAND ${CMAKE_COMMAND}
-DCMAKE_INSTALL_PREFIX:PATH=${TPSRC}/dist ${TPSRC}/src/libsmvf1.0
INSTALL_COMMAND echo "LibSMV compiled successfully"
)
SET(SMV sbtk CACHE FILEPATH "Path to LibSMV." FORCE)
MARK_AS_ADVANCED(SMV)
LINK_DIRECTORIES(${TPSRC}/dist/lib)
ELSE (THIRDPARTY_BUILD_SMV)
INCLUDE(FindSMV)
ENDIF (THIRDPARTY_BUILD_SMV)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment