Changeset View
Changeset View
Standalone View
Standalone View
src/bugzillaintegration/libbugzilla/autotests/CMakeLists.txt
- This file was added.
1 | remove_definitions(-DQT_NO_CAST_FROM_ASCII) | ||||
---|---|---|---|---|---|
2 | | ||||
3 | #set( EXPORT ) # nothing, everything is exported by default; gcc/unix | ||||
4 | | ||||
5 | set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--export-all-symbols") | ||||
6 | set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--export-all-symbols") | ||||
7 | | ||||
8 | | ||||
9 | include(ECMAddTests) | ||||
10 | include(GenerateExportHeader) | ||||
11 | | ||||
12 | find_package(Qt5Test ${REQUIRED_QT_VERSION} CONFIG REQUIRED) | ||||
13 | | ||||
14 | # Include src so we have access to config-kcrash.h | ||||
15 | include_directories(${CMAKE_CURRENT_BINARY_DIR}/..) | ||||
16 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||||
17 | | ||||
18 | ecm_add_tests( | ||||
19 | bugtest.cpp | ||||
20 | bugzillatest.cpp | ||||
21 | connectiontest.cpp | ||||
22 | producttest.cpp | ||||
23 | LINK_LIBRARIES | ||||
24 | Qt5::Core | ||||
25 | Qt5::Test | ||||
26 | Qt5::Network | ||||
27 | | ||||
28 | qbugzilla | ||||
29 | ) | ||||
30 | | ||||
31 | ecm_mark_nongui_executable(bugzillatest) | ||||
32 | | ||||
33 | |