-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathCMakeLists.txt
29 lines (25 loc) · 896 Bytes
/
CMakeLists.txt
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
27
28
29
set(QUICKJS_PATH "../../../native/quickjs")
file(STRINGS "${QUICKJS_PATH}/VERSION" CONFIG_VERSION)
add_definitions(-DCONFIG_VERSION=\"${CONFIG_VERSION}\")
add_definitions(-DCONFIG_BIGNUM)
file(GLOB wrapper_src
"../../../native/cpp/*.cpp"
"../../../native/cpp/*.h"
)
file(GLOB quickjs_src
"${QUICKJS_PATH}/cutils.c"
"${QUICKJS_PATH}/cutils.h"
"${QUICKJS_PATH}/libbf.c"
"${QUICKJS_PATH}/libbf.h"
"${QUICKJS_PATH}/libregexp-opcode.h"
"${QUICKJS_PATH}/libregexp.c"
"${QUICKJS_PATH}/libregexp.h"
"${QUICKJS_PATH}/libunicode-table.h"
"${QUICKJS_PATH}/libunicode.c"
"${QUICKJS_PATH}/libunicode.h"
"${QUICKJS_PATH}/list.h"
"${QUICKJS_PATH}/quickjs-atom.h"
"${QUICKJS_PATH}/quickjs-opcode.h"
"${QUICKJS_PATH}/quickjs.c"
"${QUICKJS_PATH}/quickjs.h"
)