##// END OF EJS Templates
Now Works with Python 2 & 3, Qt 4 & 5....
Now Works with Python 2 & 3, Qt 4 & 5. CMake now generates different librariy files depending on the linked Qt/Python versions: PythonQt - Qt 4.x + Python 2.x PythonQt_3 - Qt 4.x + Python 3.x PythonQt5 - Qt 5.x + Python 2.x PythonQt5_3 - Qt 5.x + Python 3.x Fix Qt 4 build.

File last commit:

r208:1476f2d2cf46
r208:1476f2d2cf46
Show More
CMakeLists.txt
26 lines | 555 B | text/plain | TextLexer
# PythonQt Tests
# must be included from PythonQt main CMakeLists
project(PythonQt_Tests)
SET(HEADERS
PythonQtTests.h
)
SET(SOURCES
PythonQtTestMain.cpp
PythonQtTests.cpp
)
include_directories(../src)
qt_wrap_cpp(GEN_HEADERS ${HEADERS})
add_executable(PythonQtTest ${SOURCES} ${GEN_HEADERS})
if(PythonQt_Qt5)
qt_use_modules(PythonQtTest Test Gui Widgets)
else()
qt_use_modules(PythonQtTest Test Gui)
endif()
get_property(PythonQt_lib TARGET ${PythonQt} PROPERTY LOCATION)
target_link_libraries(PythonQtTest ${PythonQt_lib} ${PYTHON_LIBRARIES})