1 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
3 add_subdirectory(nonbonded)
5 # The nonbonded directory contains subdirectories that are only
6 # conditionally built, so we cannot use a GLOB_RECURSE here.
7 file(GLOB GMXLIB_SOURCES *.c *.cpp statistics/*.c)
9 # This would be the standard way to include thread_mpi, but we want libgmx
10 # to link the functions directly
12 # add_subdirectory(thread_mpi)
13 #endif(GMX_THREAD_MPI)
14 #target_link_libraries(gmx ${GMX_EXTRA_LIBRARIES} ${THREAD_MPI_LIB})
16 # Files called xxx_test.c are test drivers with a main() function for module xxx.c,
17 # so they should not be included in the library
18 file(GLOB_RECURSE NOT_GMXLIB_SOURCES *_test.c *\#*)
19 list(REMOVE_ITEM GMXLIB_SOURCES ${NOT_GMXLIB_SOURCES})
22 set(GMXLIB_SOURCES ${GMXLIB_SOURCES} ${CMAKE_SOURCE_DIR}/src/external/vmd_molfile/vmddlopen.c)
24 list(REMOVE_ITEM GMXLIB_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/vmdio.c)
27 # An ugly hack to get absolute paths...
28 file(GLOB THREAD_MPI_SOURCES ${THREAD_MPI_SRC})
29 file(GLOB THREAD_MPI_CXX_SOURCES ${THREAD_MPI_CXX_SRC})
31 set(GMXLIB_SOURCES ${GMXLIB_SOURCES}
32 ${THREAD_MPI_SOURCES} ${THREAD_MPI_CXX_SOURCES} ${NONBONDED_SOURCES}