Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/sqlcipher/tests/CMakeLists.txt
1 | # Copyright (c) 2014, Christian Dávid, <christian-david@web.de> | 1 | include(ECMAddTests) | ||
---|---|---|---|---|---|
2 | # | | |||
3 | # Redistribution and use in source and binary forms, with or without | | |||
4 | # modification, are permitted provided that the following conditions | | |||
5 | # are met: | | |||
6 | # | | |||
7 | # 1. Redistributions of source code must retain the copyright | | |||
8 | # notice, this list of conditions and the following disclaimer. | | |||
9 | # 2. Redistributions in binary form must reproduce the copyright | | |||
10 | # notice, this list of conditions and the following disclaimer in the | | |||
11 | # documentation and/or other materials provided with the distribution. | | |||
12 | # 3. The name of the author may not be used to endorse or promote products | | |||
13 | # derived from this software without specific prior written permission. | | |||
14 | # | | |||
15 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | | |||
16 | # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | | |||
17 | # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | | |||
18 | # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | | |||
19 | # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | | |||
20 | # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | | |||
21 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | | |||
22 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | | |||
23 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | | |||
24 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | | |||
25 | 2 | | |||
26 | set (LIBRARIES | 3 | file(GLOB tests_sources "*-test.cpp") | ||
27 | Qt5::Core | 4 | ecm_add_tests(${tests_sources} | ||
5 | LINK_LIBRARIES | ||||
28 | Qt5::Test | 6 | Qt5::Test | ||
29 | Qt5::Sql | 7 | Qt5::Sql | ||
30 | ) | 8 | ) | ||
31 | | ||||
32 | set( sqlcipherdriverinstalltest_SRCS | | |||
33 | sqlcipherdriverinstalltest.cpp | | |||
34 | ) | | |||
35 | | ||||
36 | kde4_add_unit_test( sqlcipherdriverinstalltest | | |||
37 | TESTNAME sqlcipherdriver-installed-test | | |||
38 | ${sqlcipherdriverinstalltest_SRCS} | | |||
39 | ) | | |||
40 | | ||||
41 | target_link_libraries( sqlcipherdriverinstalltest | | |||
42 | ${LIBRARIES} | | |||
43 | ) | | |||
44 | | ||||
45 | | ||||
46 | set( sqlcipherdrivertest_SRCS | | |||
47 | sqlcipherdrivertest.cpp | | |||
48 | ) | | |||
49 | | ||||
50 | kde4_add_unit_test( sqlcipherdrivertest | | |||
51 | TESTNAME sqlcipherdriver | | |||
52 | ${sqlcipherdrivertest_SRCS} | | |||
53 | ) | | |||
54 | | ||||
55 | target_link_libraries( sqlcipherdrivertest | | |||
56 | ${LIBRARIES} | | |||
57 | ) | |