##// 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
40 lines | 806 B | text/plain | TextLexer
Orochimarufan
Redo CMake build system, get Qt5 support...
r205 project(PythonQtGenerator)
# straight qmake port
SET(HEADERS)
SET(SOURCES)
SET(QT)
SET(RESOURCES)
SET(INCLUDEPATH)
SET(DEFINES)
Orochimarufan
Now Works with Python 2 & 3, Qt 4 & 5....
r208 include(${CMAKE_CURRENT_SOURCE_DIR}/generator_50.cmake)
Orochimarufan
Redo CMake build system, get Qt5 support...
r205
LIST(APPEND HEADERS
#generatorscript.h
generatorsetqtscript.h
metaqtscriptbuilder.h
metaqtscript.h
shellgenerator.h
shellimplgenerator.h
shellheadergenerator.h
setupgenerator.h
)
LIST(APPEND SOURCES
generatorsetqtscript.cpp
metaqtscriptbuilder.cpp
metaqtscript.cpp
shellgenerator.cpp
shellimplgenerator.cpp
shellheadergenerator.cpp
setupgenerator.cpp
)
include_directories(${INCLUDEPATH})
add_definitions(${DEFINITIONS})
qt_add_resources(GEN_QRC ${RESOURCES})
qt_wrap_cpp(GEN_MOC ${HEADERS})
add_executable(pythonqt_generator ${SOURCES} ${GEN_QRC} ${GEN_MOC})
qt_use_modules(pythonqt_generator ${QT})