comparison tests/CMakeLists.txt @ 948:21a91311c8ea

cmake: switch back, GNU make is painful
author David Demelier <markand@malikania.fr>
date Sat, 16 Jan 2021 17:58:46 +0100
parents
children b4e8551e2064
comparison
equal deleted inserted replaced
947:95201fd9ad88 948:21a91311c8ea
1 #
2 # CMakeLists.txt -- CMake build for irccd
3 #
4 # Copyright (c) 2013-2021 David Demelier <markand@malikania.fr>
5 #
6 # Permission to use, copy, modify, and/or distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies.
9 #
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 #
18
19 project(tests)
20
21 set(
22 TESTS
23 test-channel
24 #test-dl-plugin
25 test-log
26 test-rule
27 test-subst
28 test-util
29 )
30
31 foreach (t ${TESTS})
32 add_executable(${t} ${t}.c)
33 add_test(${t} ${t})
34 target_link_libraries(${t} libirccd libirccd-greatest)
35 set_target_properties(${t} PROPERTIES FOLDER "tests")
36 endforeach ()