CMakeLists.txt 2.52 KB
Newer Older
1 2 3
# DO NOT EDIT THIS FILE! THIS FILE IS AUTOMATICALLY GENERATED BY xml2cmake
PROJECT(Nek5000)

4 5
INCLUDE(${VISIT_SOURCE_DIR}/CMake/PluginMacros.cmake)

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
SET(COMMON_SOURCES
Nek5000PluginInfo.C
Nek5000CommonPluginInfo.C
)

SET(LIBI_SOURCES 
Nek5000PluginInfo.C
)

SET(LIBM_SOURCES
Nek5000MDServerPluginInfo.C
${COMMON_SOURCES}
avtNek5000FileFormat.C
)

SET(LIBE_SOURCES
Nek5000EnginePluginInfo.C
${COMMON_SOURCES}
avtNek5000FileFormat.C
)

INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
29
${BOOST_INCLUDE_DIR}
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
${VISIT_COMMON_INCLUDES}
${VISIT_INCLUDE_DIR}/avt/DBAtts/MetaData
${VISIT_INCLUDE_DIR}/avt/DBAtts/SIL
${VISIT_INCLUDE_DIR}/avt/Database/Database
${VISIT_INCLUDE_DIR}/avt/Database/Formats
${VISIT_INCLUDE_DIR}/avt/Database/Ghost
${VISIT_INCLUDE_DIR}/avt/FileWriter
${VISIT_INCLUDE_DIR}/avt/Filters
${VISIT_INCLUDE_DIR}/avt/MIR/Base
${VISIT_INCLUDE_DIR}/avt/MIR/Tet
${VISIT_INCLUDE_DIR}/avt/MIR/Zoo
${VISIT_INCLUDE_DIR}/avt/Math
${VISIT_INCLUDE_DIR}/avt/Pipeline/AbstractFilters
${VISIT_INCLUDE_DIR}/avt/Pipeline/Data
${VISIT_INCLUDE_DIR}/avt/Pipeline/Pipeline
${VISIT_INCLUDE_DIR}/avt/Pipeline/Sinks
${VISIT_INCLUDE_DIR}/avt/Pipeline/Sources
${VISIT_INCLUDE_DIR}/avt/VisWindow/VisWindow
${VISIT_INCLUDE_DIR}/visit_vtk/full
${VISIT_INCLUDE_DIR}/visit_vtk/lightweight
${VTK_INCLUDE_DIRS} 
)


LINK_DIRECTORIES(${VISIT_LIBRARY_DIR} ${VTK_LIBRARY_DIRS} )

ADD_LIBRARY(INek5000Database ${LIBI_SOURCES})
TARGET_LINK_LIBRARIES(INek5000Database visitcommon)
SET(INSTALLTARGETS INek5000Database)

IF(NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY)
    ADD_LIBRARY(MNek5000Database ${LIBM_SOURCES}    )
    TARGET_LINK_LIBRARIES(MNek5000Database visitcommon avtdbatts avtdatabase_ser )
63
    ADD_TARGET_DEFINITIONS(MNek5000Database MDSERVER)
64 65 66 67 68
    SET(INSTALLTARGETS ${INSTALLTARGETS} MNek5000Database)
ENDIF(NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY)

ADD_LIBRARY(ENek5000Database_ser ${LIBE_SOURCES})
TARGET_LINK_LIBRARIES(ENek5000Database_ser visitcommon avtdatabase_ser avtpipeline_ser )
69
ADD_TARGET_DEFINITIONS(ENek5000Database_ser ENGINE)
70 71 72 73 74
SET(INSTALLTARGETS ${INSTALLTARGETS} ENek5000Database_ser)

IF(VISIT_PARALLEL)
    ADD_PARALLEL_LIBRARY(ENek5000Database_par ${LIBE_SOURCES})
    TARGET_LINK_LIBRARIES(ENek5000Database_par visitcommon avtdatabase_par avtpipeline_par )
75
    ADD_TARGET_DEFINITIONS(ENek5000Database_par ENGINE)
76 77 78 79
    SET(INSTALLTARGETS ${INSTALLTARGETS} ENek5000Database_par)
ENDIF(VISIT_PARALLEL)

VISIT_INSTALL_DATABASE_PLUGINS(${INSTALLTARGETS})
80
VISIT_PLUGIN_TARGET_RTOD(databases ${INSTALLTARGETS})
81 82
VISIT_PLUGIN_TARGET_FOLDER(databases Nek5000 ${INSTALLTARGETS})