Commit c85cca33 authored by David Partyka's avatar David Partyka

Add exports logic.

parent 40102ceb
......@@ -4,7 +4,6 @@ PROJECT(QtTesting)
IF(NOT QT_FOUND)
FIND_PACKAGE(Qt4 REQUIRED)
INCLUDE( ${QT_USE_FILE} )
ENDIF()
......@@ -31,6 +30,10 @@ IF(NOT DEFINED QT_TESTING_EVENT_PLAYBACK_DELAY)
MARK_AS_ADVANCED(QT_TESTING_EVENT_PLAYBACK_DELAY)
ENDIF()
IF(NOT QT_TESTING_INSTALL_EXPORT_NAME)
SET(QT_TESTING_INSTALL_EXPORT_NAME QtTestingTargets)
ENDIF()
IF(QT_TESTING_WITH_PYTHON)
IF(NOT PythonLibs_FOUND)
......@@ -198,6 +201,7 @@ CONFIGURE_FILE(${QtTesting_SOURCE_DIR}/QtTestingConfigure.h.in
${QtTesting_BINARY_DIR}/QtTestingConfigure.h)
INSTALL(TARGETS QtTesting
EXPORT ${QT_TESTING_INSTALL_EXPORT_NAME}
RUNTIME DESTINATION ${QtTesting_INSTALL_BIN_DIR} COMPONENT Runtime
LIBRARY DESTINATION ${QtTesting_INSTALL_LIB_DIR} COMPONENT Runtime
ARCHIVE DESTINATION ${QtTesting_INSTALL_LIB_DIR} COMPONENT Development)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment