Created
November 13, 2012 08:38
-
-
Save candycode/4064687 to your computer and use it in GitHub Desktop.
Qt + Python CMake config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
project(qpy) | |
#Qt | |
find_package(Qt4 REQUIRED QtCore) | |
include(${QT_USE_FILE}) | |
#Python | |
find_package(PythonLibs) | |
include_directories( ${PYTHON_INCLUDE_DIRS} ${QT_INCLUDES} ) | |
message( ${QT_INCLUDES} ) | |
message( ${QT_LIBRARIES} ) | |
message( ${PYTHON_INCLUDE_DIRS} ) | |
message( ${PYTHON_LIBRARIES} ) | |
#test app | |
set( MOC_HEADERS TestObject.h ) | |
QT4_WRAP_CPP( MOC_SRCS ${MOC_HEADERS} ) | |
add_executable( qscratch qscratch.cpp ${MOC_SRCS} ${MOC_HEADERS} ) | |
target_link_libraries( qscratch ${PYTHON_LIBRARIES} ${QT_LIBRARIES} ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment