2019-02-01 22:10:36 -06:00
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (WasmerCApiTests)
|
|
|
|
|
|
|
|
add_executable(test-instantiate test-instantiate.c)
|
2019-02-02 17:43:59 -06:00
|
|
|
add_executable(test-import-function test-import-function.c)
|
2019-02-01 22:10:36 -06:00
|
|
|
|
|
|
|
target_link_libraries(test-instantiate
|
|
|
|
general "${CMAKE_SOURCE_DIR}/../../../target/debug/libwasmer_runtime_c_api.dylib")
|
|
|
|
|
2019-02-02 17:43:59 -06:00
|
|
|
target_link_libraries(test-import-function
|
|
|
|
general "${CMAKE_SOURCE_DIR}/../../../target/debug/libwasmer_runtime_c_api.dylib")
|
|
|
|
|
2019-02-01 22:10:36 -06:00
|
|
|
enable_testing()
|
|
|
|
add_test(test-instantiate test-instantiate)
|
2019-02-02 17:43:59 -06:00
|
|
|
add_test(test-import-function test-import-function)
|
2019-02-01 22:10:36 -06:00
|
|
|
|