CMakeLists.txt 1.05 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
cmake_minimum_required (VERSION 2.8.10)
cmake_policy (SET CMP0048 NEW)
project (MSLANG)
set (MSLANG_VERSION_MAJOR 0)
set (MSLANG_VERSION_MINOR 1)

add_definitions (-DIPPL_MPI)
add_definitions (-DIPPL_DONT_POOL)
add_definitions (-DIPPL_USE_XDIV_RNG)
add_definitions (-DIPPL_USE_PARTIAL_SPECIALIZATION)
add_definitions (-DNOCTAssert)

include_directories (
14 15
    ${CMAKE_SOURCE_DIR}/src
    ${CMAKE_SOURCE_DIR}/src/Classic
kraus's avatar
kraus committed
16
    ${CMAKE_SOURCE_DIR}/ippl/src
17
    ${GSL_INCLUDE_DIR}
18 19
)

20
link_directories (
21 22 23 24
    ${IPPL_LIBRARY_DIR}
    ${CMAKE_SOURCE_DIR}/src
)

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

39 40 41 42 43
message (STATUS "Compiling MSLang")
add_executable (mslang mslang.cpp)
target_link_libraries (mslang ${MSLANG_LIBS})

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

45 46 47 48 49 50 51
# vi: set et ts=4 sw=4 sts=4:
  
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
# End: