Skip to content

Commit 282e919

Browse files
committed
test: Add a barebones CMake project for compiling some test executables
1 parent 6b6cc62 commit 282e919

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# Copyright (c) 2024 Martin Storsjo
3+
#
4+
# Permission to use, copy, modify, and/or distribute this software for any
5+
# purpose with or without fee is hereby granted, provided that the above
6+
# copyright notice and this permission notice appear in all copies.
7+
#
8+
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9+
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10+
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11+
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12+
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14+
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15+
16+
cmake_minimum_required(VERSION 3.17)
17+
project(test)
18+
19+
add_executable(hello hello.c)
20+
add_executable(hello-cpp hello-cpp.cpp)
21+
add_executable(crt-test crt-test.c)
22+
add_executable(hello-res hello-res.c hello-res-rc.rc)

0 commit comments

Comments
 (0)