summaryrefslogtreecommitdiffstats
path: root/PySide/QtCore/CMakeLists.txt
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-09-09 13:36:26 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-09-09 13:36:26 -0300
commit0d4c968a6c323eda43af21b34350995e793ff2d5 (patch)
treeac01a42b0c455ea5d8595a096adc9a3145638ed4 /PySide/QtCore/CMakeLists.txt
downloadpyside-0d4c968a6c323eda43af21b34350995e793ff2d5.tar.gz
pyside-0d4c968a6c323eda43af21b34350995e793ff2d5.tar.xz
pyside-0d4c968a6c323eda43af21b34350995e793ff2d5.zip
Initial experiments with shiboken and Qt
Diffstat (limited to 'PySide/QtCore/CMakeLists.txt')
-rw-r--r--PySide/QtCore/CMakeLists.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/PySide/QtCore/CMakeLists.txt b/PySide/QtCore/CMakeLists.txt
new file mode 100644
index 0000000..e777374
--- /dev/null
+++ b/PySide/QtCore/CMakeLists.txt
@@ -0,0 +1,35 @@
+project(QtCore)
+
+set(QtCore_SRC
+${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qregexp_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qchar_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qstring_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qstring_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qpoint_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qpointf_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qrect_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qrectf_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qsize_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qsizef_wrapper.cpp
+${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qtcore_module_wrapper.cpp
+)
+
+execute_generator(core QtCore_SRC)
+
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}/${BINDING_NAME}/QtCore/
+ ${QT_INCLUDE_DIR}
+ ${SHIBOKEN_INCLUDE_DIR}
+ ${PYTHON_INCLUDE_PATH}
+ )
+add_library(QtCore MODULE ${QtCore_SRC})
+set_property(TARGET QtCore PROPERTY PREFIX "")
+target_link_libraries(QtCore
+ ${PYTHON_LIBRARIES}
+ ${SHIBOKEN_LIBRARY}
+ ${QT_QTCORE_LIBRARY}
+ )
+
+# install
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/QtCore.so
+ DESTINATION ${SITE_PACKAGE}/${BINDING_NAME})