##// END OF EJS Templates
Redo CMake build system, get Qt5 support...
Redo CMake build system, get Qt5 support Qt5 support as discussed here: 3fbe">http://sourceforge.net/p/pythonqt/discussion/631392/thread/5f20c176/3fbe

File last commit:

r205:706df4355685
r205:706df4355685
Show More
CMakeLists.txt
26 lines | 552 B | text/plain | TextLexer
Orochimarufan
Redo CMake build system, get Qt5 support...
r205 # 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})