Move thread_mpi to src/external/
[alexxy/gromacs.git] / src / gromacs / CMakeLists.txt
index 6f5d146b1b1c882d2e8c3c16a483ff4c2b1618c8..a541e1c46684d71e402155a052df5df75c7efad6 100644 (file)
@@ -75,6 +75,16 @@ endif()
 
 list(APPEND LIBGROMACS_SOURCES ${GMXLIB_SOURCES} ${MDLIB_SOURCES})
 
+# This would be the standard way to include thread_mpi, but
+# we want libgromacs to link the functions directly
+#if(GMX_THREAD_MPI)
+#    add_subdirectory(thread_mpi)
+#endif()
+#target_link_libraries(gmx ${GMX_EXTRA_LIBRARIES} ${THREAD_MPI_LIB})
+
+tmpi_get_source_list(THREAD_MPI_SOURCES ${CMAKE_SOURCE_DIR}/src/external/thread_mpi/src)
+list(APPEND LIBGROMACS_SOURCES ${THREAD_MPI_SOURCES})
+
 file(GLOB LIBGROMACS_HEADERS *.h)
 configure_file(version.h.cmakein version.h)
 gmx_install_headers("" ${LIBGROMACS_HEADERS})