CMakeLists.txt 1.08 KB
Newer Older
1 2 3 4 5
CMAKE_MINIMUM_REQUIRED (VERSION 2.8.10)
PROJECT (MSLANG)
SET (MSLANG_VERSION_MAJOR 0)
SET (MSLANG_VERSION_MINOR 1)

kraus's avatar
kraus committed
6 7 8 9 10 11 12 13
SET (IPPL_CXX_FLAGS
    "-DIPPL_LINUX -DIPPL_STRINGSTREAM -DIPPL_MPI -DMPICH_SKIP_MPICXX -DIPPL_DONT_POOL -DIPPL_USE_XDIV_RNG -DPETE_BITWISE_COPY -DIPPL_HAS_TEMPLATED_COMPLEX -DIPPL_USE_PARTIAL_SPECIALIZATION -Drestrict=__restrict__ -DNOCTAssert ${IPPL_CXX_FLAGS}"
    )

 SET (CMAKE_CXX_FLAGS
     "${OTHER_CXX_FLAGS} ${IPPL_CXX_FLAGS} ${CMAKE_CXX_FLAGS} "
     )

14 15 16
INCLUDE_DIRECTORIES (
    ${CMAKE_SOURCE_DIR}/src
    ${CMAKE_SOURCE_DIR}/src/Classic
kraus's avatar
kraus committed
17
    ${CMAKE_SOURCE_DIR}/ippl/src
18
    ${GSL_INCLUDE_DIR}
19 20 21 22 23 24 25 26 27
)

LINK_DIRECTORIES (
    ${IPPL_LIBRARY_DIR}
    ${CMAKE_SOURCE_DIR}/src
)

SET (MSLANG_LIBS
    libOPAL
kraus's avatar
kraus committed
28 29
    ${OPTP_LIBS}
    ${OPTP_LIBRARY}
30
    ${IPPL_LIBRARY}
kraus's avatar
kraus committed
31
    ${GSL_LIBRARY}
32
    ${GSL_CBLAS_LIBRARY}
kraus's avatar
kraus committed
33 34
    ${H5Hut_LIBRARY}
    ${HDF5_LIBRARY}
35 36 37 38 39
    ${Boost_LIBRARIES}
    m
    z
)

kraus's avatar
kraus committed
40
MESSAGE( STATUS "Compiling MSLang")
41 42 43 44
ADD_EXECUTABLE( mslang mslang.cpp )
TARGET_LINK_LIBRARIES( mslang ${MSLANG_LIBS} )

INSTALL(TARGETS mslang RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")