3 # handle native python installs separately from the others
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}
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")
21 # if we are compiling with MPI support built in, set appropriate
22 # compiler/linker flags
24 set_target_properties(hoomd PROPERTIES COMPILE_FLAGS "${MPI_CXX_COMPILE_FLAGS}")
25 endif(MPI_COMPILE_FLAGS)
27 set_target_properties(hoomd PROPERTIES LINK_FLAGS "${MPI_CXX_LINK_FLAGS}")
32 # install the executable
34 RUNTIME DESTINATION ${BIN_INSTALL_DIR})
35 endif (PYTHON_SITEDIR)