CMakeLists.txt
26 lines
| 555 B
| text/plain
|
TextLexer
/ tests / CMakeLists.txt
r0 | # 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}) | ||||