Enable parallel tests.
[hoomd-blue.git] / python-runner / CMakeLists.txt
blob0bb1e8d3a26c5319642886765f7256a25407d052
1 # Maintainer: joaander
3 # handle native python installs separately from the others
4 if (PYTHON_SITEDIR)
5     # install the hoomd runner script to transparently process hoomd into python
6     install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/hoomd
7             DESTINATION ${BIN_INSTALL_DIR}
8             )
9 else (PYTHON_SITEDIR)
10     # setup and install the hoomd executable
11     set(_hoomd_run_input ${CMAKE_CURRENT_SOURCE_DIR}/hoomd_run.in)
13     add_executable(hoomd hoomd.cc)
14     target_link_libraries(hoomd libhoomd ${HOOMD_COMMON_LIBS})
15     fix_cudart_rpath(hoomd)
17     # set the rpath so that the exe can find libs stashed in lib/hoomd/python-module
18     set_target_properties(hoomd PROPERTIES INSTALL_RPATH "\\\$ORIGIN/../lib/hoomd/python-module")
20     if (ENABLE_MPI)
21        # if we are compiling with MPI support built in, set appropriate
22        # compiler/linker flags
23        if(MPI_COMPILE_FLAGS)
24            set_target_properties(hoomd PROPERTIES COMPILE_FLAGS "${MPI_CXX_COMPILE_FLAGS}")
25        endif(MPI_COMPILE_FLAGS)
26        if(MPI_LINK_FLAGS)
27            set_target_properties(hoomd PROPERTIES LINK_FLAGS "${MPI_CXX_LINK_FLAGS}")
28        endif(MPI_LINK_FLAGS)
29     endif(ENABLE_MPI)
32     # install the executable
33     install(TARGETS hoomd
34             RUNTIME DESTINATION ${BIN_INSTALL_DIR})
35 endif (PYTHON_SITEDIR)