CMakeLists.txt 1.32 KB
Newer Older
1
#install headers
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

dune_add_library("duneamdis" NO_EXPORT
    AdaptInfo.cpp
    AMDiS.cpp
    Initfile.cpp
    ProblemStat.cpp
    SystemVector.cpp
    )
add_dune_alberta_flags("duneamdis" OBJECT USE_GENERIC)

set(BOOST_VERSION "1.54")
set(BOOST_LIBS_REQUIRED system program_options)
if (NOT BUILD_SHARED_LIBS)
    set(Boost_USE_STATIC_LIBS ON)
endif (NOT BUILD_SHARED_LIBS)
set(Boost_NO_SYSTEM_PATHS ON)
find_package(Boost ${BOOST_VERSION} REQUIRED ${BOOST_LIBS_REQUIRED})
if (Boost_FOUND)
    add_library(boost INTERFACE)
    target_include_directories(boost INTERFACE ${Boost_INCLUDE_DIR})
    target_link_libraries(boost INTERFACE  ${Boost_LIBRARIES})
    target_link_libraries("duneamdis" INTERFACE boost)

    if (MSVC_SHARED_LIBS)
        link_directories(${Boost_LIBRARY_DIRS})
        target_compile_definitions("duneamdis" INTERFACE ${Boost_LIB_DIAGNOSTIC_DEFINITIONS})
    endif (MSVC_SHARED_LIBS)
endif (Boost_FOUND)


install(FILES 
    AdaptInfo.hpp
    AMDiS.hpp
    Basic.hpp
    DirichletBC.hpp
    DirichletBC.inc.hpp
    DOFVector.hpp
    Flag.hpp
    IndexSeq.hpp
    Initfile.hpp
    Log.hpp
    Loop.hpp
    Math.hpp
    Operator.hpp
    Operator.inc.hpp
    OperatorTerm.hpp
    ProblemStat.hpp
    ProblemStat.inc.hpp
    ProblemStatBase.hpp
    SystemVector.hpp
    Timer.hpp
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/amdis)