3 ##################################
4 ## find the threads library
7 include_directories(${PYTHON_INCLUDE_DIR})
11 find_package(ZLIB REQUIRED)
13 include_directories(${ZLIB_INCLUDE_DIR})
17 find_library(OCELOT_LIBRARY NAMES ocelot)
18 # override the CUDART library
19 set (CUDA_CUDART_LIBRARY ${OCELOT_LIBRARY} CACHE STRING "ENABLE_OCELOT forces replacement of CUDART with ocelot" FORCE)
22 mark_as_advanced(OCELOT_LIBRARY)
23 endif (OCELOT_LIBRARY)
28 ################################
29 ## Define common libraries used by every target in HOOMD
31 set(HOOMD_COMMON_LIBS ${PYTHON_LIBRARIES} ${WINSOCK_LIB})
33 set(BOOST_LIBS ${Boost_THREAD_LIBRARY}
34 ${Boost_FILESYSTEM_LIBRARY}
35 ${Boost_PROGRAM_OPTIONS_LIBRARY}
36 ${Boost_SIGNALS_LIBRARY}
37 ${Boost_IOSTREAMS_LIBRARY}
40 string(TOUPPER ${BOOST_PYTHON_COMPONENT} UPPER_BOOST_PYTHON_COMPONENT )
41 set(BOOST_LIBS ${BOOST_LIBS} ${Boost_${UPPER_BOOST_PYTHON_COMPONENT}_LIBRARY})
43 if (Boost_SYSTEM_LIBRARY)
44 set(BOOST_LIBS ${BOOST_LIBS} ${Boost_SYSTEM_LIBRARY})
45 endif (Boost_SYSTEM_LIBRARY)
48 # these libraries are needed for MPI
50 set(BOOST_LIBS ${BOOST_LIBS} ${Boost_SERIALIZATION_LIBRARY})
53 ## An update to to CentOS5's python broke linking of the hoomd exe. According
54 ## to an ancient post online, adding -lutil fixed this in python 2.2
55 set(ADDITIONAL_LIBS "")
56 if (UNIX AND NOT APPLE)
57 find_library(UTIL_LIB util /usr/lib)
58 find_library(DL_LIB dl /usr/lib)
59 set(ADDITIONAL_LIBS ${UTIL_LIB} ${DL_LIB})
60 if (DL_LIB AND UTIL_LIB)
61 mark_as_advanced(UTIL_LIB DL_LIB)
62 endif (DL_LIB AND UTIL_LIB)
63 endif (UNIX AND NOT APPLE)
68 ${CMAKE_THREAD_LIBS_INIT}
75 list(APPEND HOOMD_COMMON_LIBS ${CUDA_LIBRARIES} ${CUDA_cufft_LIBRARY})
78 list(APPEND HOOMD_COMMON_LIBS ${CUDA_nvToolsExt_LIBRARY})
83 list(APPEND HOOMD_COMMON_LIBS ${MPI_CXX_LIBRARIES})