diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-11-30 14:55:09 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-12 18:41:24 +0100 |
commit | b61d36ee3668833ad51b98ffcafc962b5dd3fa9a (patch) | |
tree | 4705c95ed824466533cfc622a86e0d6d29dd878f /tests/auto/cmake/test_modules/container/CMakeLists.txt | |
parent | acbfac4817966672bb2c68a70f3186d3945b220f (diff) |
Re-enable and test the ActiveQt CMake files.v5.0.0-rc2
The Qt5AxContainer CMake module is the most commonly useful, and
the more simple.
Using Qt5AxServer requires the user to do some post-build actions
currently. In the future, it may be possible to add CMake macros
for that kind of thing, but as most people won't use CMake for
this at all, it is not so important at this time.
http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/44824
Change-Id: If33938f829fbf53190aee9d4652516e1c450f05c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'tests/auto/cmake/test_modules/container/CMakeLists.txt')
-rw-r--r-- | tests/auto/cmake/test_modules/container/CMakeLists.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/cmake/test_modules/container/CMakeLists.txt b/tests/auto/cmake/test_modules/container/CMakeLists.txt new file mode 100644 index 0000000..6d04576 --- /dev/null +++ b/tests/auto/cmake/test_modules/container/CMakeLists.txt @@ -0,0 +1,24 @@ + +cmake_minimum_required(VERSION 2.8) + +project(cmake_axcontainer) + +find_package(Qt5Core REQUIRED) +find_package(Qt5Gui REQUIRED) +find_package(Qt5Widgets REQUIRED) + +find_package(Qt5AxContainer REQUIRED) + +include_directories( + ${Qt5AxContainer_INCLUDE_DIRS} +) + +add_definitions(${Qt5AxContainer_DEFINITIONS}) + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}") + +add_executable(axcontainerapp axcontainer.cpp) + +target_link_libraries(axcontainerapp + ${Qt5AxContainer_LIBRARIES} +) |