summaryrefslogtreecommitdiff
path: root/scripts/example-project/CMakeLists.txt
diff options
context:
space:
mode:
authorSteven Johnson <srj@google.com>2024-07-31 09:52:28 -0700
committerGitHub <noreply@github.com>2024-07-31 09:52:28 -0700
commit97b9086e728765f2f956fe9263736b0cf933219e (patch)
tree48166ee0fe8a4d93f1e6d2f7ac5942c854176fec /scripts/example-project/CMakeLists.txt
parented1ce97eef41c598befa962aa97624f5c5b034cf (diff)
downloadwabt-97b9086e728765f2f956fe9263736b0cf933219e.tar.gz
wabt-97b9086e728765f2f956fe9263736b0cf933219e.tar.bz2
wabt-97b9086e728765f2f956fe9263736b0cf933219e.zip
Fix OpenSSL dependency in CMake (#2447)
Diffstat (limited to 'scripts/example-project/CMakeLists.txt')
-rw-r--r--scripts/example-project/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/example-project/CMakeLists.txt b/scripts/example-project/CMakeLists.txt
new file mode 100644
index 00000000..0ff3bb32
--- /dev/null
+++ b/scripts/example-project/CMakeLists.txt
@@ -0,0 +1,11 @@
+cmake_minimum_required(VERSION 3.16)
+project(example CXX)
+
+enable_testing()
+
+find_package(wabt REQUIRED)
+
+add_executable(example example.cpp)
+target_link_libraries(example PRIVATE wabt::wabt)
+
+add_test(NAME example COMMAND example)