CMakeLists.txt 990 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
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 (-DNOCTAssert)

include_directories (
10 11
    ${CMAKE_SOURCE_DIR}/src
    ${CMAKE_SOURCE_DIR}/src/Classic
kraus's avatar
kraus committed
12
    ${CMAKE_SOURCE_DIR}/ippl/src
13
    ${GSL_INCLUDE_DIR}
14 15
)

16
link_directories (
17 18
    ${IPPL_LIBRARY_DIR}
    ${CMAKE_SOURCE_DIR}/src
19
    ${Boost_LIBRARY_DIRS}
20 21
)

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

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

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

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