smtkprojectmanager.cmake 690 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
set(extra_cmake_args)
if (UNIX AND NOT APPLE)
  list(APPEND extra_cmake_args
    -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=FALSE)
endif ()

set(response_file)
if (WIN32)
  # Force response file usage. The command line gets way too long on Windows
  # without this. Once VTK_USE_FILE and PARAVIEW_USE_FILE are gone, this can be
  # removed again.
  set(response_file -DCMAKE_NINJA_FORCE_RESPONSE_FILE:BOOL=ON)
endif ()

superbuild_add_project(smtkprojectmanager
  DEBUGGABLE
  DEFAULT_ON
  DEPENDS boost cxx11 paraview qt qt5 smtk
  CMAKE_ARGS
    ${extra_cmake_args}
    -DBUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS}
    -DCMAKE_INSTALL_NAME_DIR:PATH=<INSTALL_DIR>/lib
    ${response_file})