forked from WebAssembly/wasm-c-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
26 lines (23 loc) · 806 Bytes
/
CMakeLists.txt
File metadata and controls
26 lines (23 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cmake_minimum_required(VERSION 3.9)
cmake_policy(SET CMP0048 NEW)
set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_C_COMPILER "clang")
project(wasm_c_api VERSION 0.0.1)
set(V8V8 ${CMAKE_SOURCE_DIR}/v8/v8)
set(V8_LIBS
-Wl,--start-group
${V8V8}/out.gn/x64.release/obj/libv8_base.a
${V8V8}/out.gn/x64.release/obj/libv8_libbase.a
${V8V8}/out.gn/x64.release/obj/libv8_external_snapshot.a
${V8V8}/out.gn/x64.release/obj/libv8_libplatform.a
${V8V8}/out.gn/x64.release/obj/libv8_libsampler.a
${V8V8}/out.gn/x64.release/obj/third_party/icu/libicuuc.a
${V8V8}/out.gn/x64.release/obj/third_party/icu/libicui18n.a
${V8V8}/out.gn/x64.release/obj/src/inspector/libinspector.a
-Wl,--end-group)
set(V8_INCLUDE
${CMAKE_SOURCE_DIR}/include
${V8V8}
${V8V8}/include)
add_subdirectory(src)
add_subdirectory(example)