test_ChASE.cmake 674 Bytes
Newer Older
1
#First check if we can compile with ChASE
2
try_compile(FLEUR_USE_CHASE ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/test_ChASE.f90 LINK_LIBRARIES ${FLEUR_LIBRARIES})
3

4 5 6 7 8 9 10 11 12 13 14
#if (NOT FLEUR_USE_CHASE)
#   find_package(chase)
#   find_package(chase-fleur)
#
#   set(TEST_LIBRARIES ${FLEUR_LIBRARIES} ${CHASE_LIBRARIES} ${CHASE-FLEUR_LIBRARIES})
#   try_compile(FLEUR_USE_CHASE ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/test_ChASE.f90 LINK_LIBRARIES ${TEST_LIBRARIES})
#
#   if (FLEUR_USE_CHASE)
#      set(FLEUR_MPI_LIBRARIES ${FLEUR_MPI_LIBRARIES} ${CHASE_LIBRARIES} ${CHASE-FLEUR_LIBRARIES})
#   endif()
#endif()
15

16
message("ChASE Library found:${FLEUR_USE_CHASE}")
17