shiboken.cmake 372 Bytes
Newer Older
1 2 3 4 5 6
set(shiboken_args)
if (UNIX)
  list(APPEND shiboken_args
    -DPYTHON_SITE_PACKAGES:STRING=lib/python2.7/site-packages)
endif ()

Jacob Becker's avatar
Jacob Becker committed
7
add_external_project(shiboken
8
  DEPENDS qt python
Jacob Becker's avatar
Jacob Becker committed
9
  CMAKE_ARGS
10
    "-C${CMAKE_BINARY_DIR}/env.cmake"
11
    -DSET_RPATH:BOOL=ON
Jacob Becker's avatar
Jacob Becker committed
12
    -DBUILD_SHARED_LIBS:BOOL=ON
13
    -DDISABLE_DOCSTRINGS:BOOL=ON
14 15
    -DBUILD_TESTS:BOOL=OFF
    ${shiboken_args}
Jacob Becker's avatar
Jacob Becker committed
16
  )