CMakeLists.txt-template 2.01 KB
Newer Older
1 2 3 4 5
cmake_minimum_required(VERSION 2.6)

set(ENV{DEVROOT} "<absolute path to exlibris dir>")
set(CMAKE_SOURCE_DIR "<absolute path to exlibris dir>")
set(CMAKE_BUILD_DIR "<absolute path to build dir>")
6 7 8 9
#set(DEVROOT $ENV{DEVROOT})
#set(CMAKE_SOURCE_DIR $ENV{DEVROOT})
#set(CMAKE_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}")
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/Xfiles/Util/cmakeUtil)
10 11 12 13 14 15 16 17 18 19

project(exlibris)
enable_testing()
include(common_functions)

set(CMAKE_BUILD_TYPE Release)

option(ENABLE_MTL "use Mtl interface" OFF)
option(ENABLE_ITL "use Itl interface" OFF)
option(ENABLE_NON_LINEAR_SOLVER "use NonLinearSolver interface" OFF)
20 21 22
option(ENABLE_SUPERLU "use SuperLu interface" ON)
option(ENABLE_LAPACK "use Lapack interface" ON)
option(ENABLE_TAUCS "use Taucs interface" ON)
23 24 25 26 27 28
option(ENABLE_MUMPS "use MUMPS interface" OFF)
option(USE_GEOM "Use Geom" OFF)
option(USE_CGAL "use library CGAL" OFF)
option(USE_XCUT "use library Xcut" OFF)
option(TLSDUCTILE_ATOMIC_TEST "include atomic test" OFF)
option(TLSDUCTILE_TEST_DYN "include test dyn" ON) 
29
option(FASTMARCHINGINTERFACE "include FastMarchingInterface" ON)
30

31 32
add_subdirectory(${CMAKE_SOURCE_DIR}/Xfiles/Trellis           ${CMAKE_BUILD_DIR}/Trellis)
add_subdirectory(${CMAKE_SOURCE_DIR}/Xfiles/Xfem            ${CMAKE_BUILD_DIR}/Xfem)
33
add_subdirectory(${CMAKE_SOURCE_DIR}/Xfiles/MeshMachine/DistMesh            ${CMAKE_BUILD_DIR}/DistMesh)
34 35
add_subdirectory(${CMAKE_SOURCE_DIR}/Xfiles/Xext            ${CMAKE_BUILD_DIR}/Xext)
add_subdirectory(${CMAKE_SOURCE_DIR}/Xfiles/xTLS/trunk/xTLS   ${CMAKE_BUILD_DIR}/xTLS)
36
add_subdirectory(${CMAKE_SOURCE_DIR}/Applis/TLSDuctile ${CMAKE_BUILD_DIR}/TLSDuctile)
37 38 39
#if (FASTMARCHINGINTERFACE)
#    add_subdirectory(${CMAKE_SOURCE_DIR}/Xfiles/FastMarching    ${CMAKE_BUILD_DIR}/FastMarching)
#endif()
40 41 42
add_subdirectory(${CMAKE_SOURCE_DIR}/Xfiles/Geom            ${CMAKE_BUILD_DIR}/Geom)
add_subdirectory(${CMAKE_SOURCE_DIR}/Xfiles/Xinterfaces       ${CMAKE_BUILD_DIR}/Xinterfaces)
add_subdirectory(${CMAKE_SOURCE_DIR}/Xfiles/Util/eXlibris_tools  ${CMAKE_BUILD_DIR}/eXlibris_tools)