3 set(CMAKE_BUILD_RPATH_USE_ORIGIN 1)
4 if (UNIX AND NOT APPLE)
5 file(RELATIVE_PATH _paraview_client_relpath
6 "/prefix/${CMAKE_INSTALL_BINDIR}" 7 "/prefix/${CMAKE_INSTALL_LIBDIR}")
8 set(_paraview_client_origin_rpath
9 "$ORIGIN/${_paraview_client_relpath}")
11 list(APPEND CMAKE_INSTALL_RPATH
12 "${_paraview_client_origin_rpath}")
15 add_executable("${
name}
") 16 target_sources("${
name}
" 19 # Add a dummy file set to optimize dependencies. See CMP0154. 20 _vtk_module_add_file_set("${
name}
" 21 BASE_DIRS "${CMAKE_CURRENT_BINARY_DIR}
" 23 add_executable("ParaView::${
name}
" ALIAS "${
name}
") 25 target_link_libraries("${
name}
" 27 ParaView::RemotingApplication) 29 target_link_libraries("${
name}
" 31 ParaView::paraview_plugins) 32 target_compile_definitions("${
name}
" 36 if (PARAVIEW_USE_PYTHON) 37 target_link_libraries("${
name}
" 39 VTK::PythonInterpreter 40 ParaView::PythonInitializer 41 ParaView::PythonInterpreterPath) 44 if (paraview_exe_job_link_pool) 45 set_property(TARGET "${
name}
" 47 JOB_POOL_LINK "${paraview_exe_job_link_pool}
") 52 DESTINATION "${CMAKE_INSTALL_BINDIR}
" function paraview_add_executable(name)
#define PARAVIEW_USE_EXTERNAL_VTK
#define PARAVIEW_USE_PYTHON