diff options
Diffstat (limited to 'scripts/example-project')
-rw-r--r-- | scripts/example-project/CMakeLists.txt | 11 | ||||
-rw-r--r-- | scripts/example-project/example.cpp | 3 |
2 files changed, 14 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) diff --git a/scripts/example-project/example.cpp b/scripts/example-project/example.cpp new file mode 100644 index 00000000..680b99e3 --- /dev/null +++ b/scripts/example-project/example.cpp @@ -0,0 +1,3 @@ +#include <wabt/ir.h> + +int main () {} |