|
| 1 | +cmake_minimum_required(VERSION 3.1) |
| 2 | + |
| 3 | +project(heapsapp) |
| 4 | + |
| 5 | +file(GLOB libhl |
| 6 | + hashlink/src/std/array.c |
| 7 | + hashlink/src/std/buffer.c |
| 8 | + hashlink/src/std/bytes.c |
| 9 | + hashlink/src/std/cast.c |
| 10 | + hashlink/src/std/date.c |
| 11 | + hashlink/src/std/error.c |
| 12 | + hashlink/src/std/file.c |
| 13 | + hashlink/src/std/fun.c |
| 14 | + hashlink/src/std/maps.c |
| 15 | + hashlink/src/std/math.c |
| 16 | + hashlink/src/std/obj.c |
| 17 | + hashlink/src/std/random.c |
| 18 | + hashlink/src/std/regexp.c |
| 19 | + hashlink/src/std/socket.c |
| 20 | + hashlink/src/std/string.c |
| 21 | + hashlink/src/std/sys.c |
| 22 | + hashlink/src/std/types.c |
| 23 | + hashlink/src/std/ucs2.c |
| 24 | + hashlink/src/std/thread.c |
| 25 | + hashlink/src/std/process.c |
| 26 | + hashlink/src/alloc.c |
| 27 | + |
| 28 | + hashlink/std/sys_android.c |
| 29 | +) |
| 30 | + |
| 31 | +file(GLOB pcre |
| 32 | + hashlink/include/pcre/pcre_chartables.c |
| 33 | + hashlink/include/pcre/pcre_compile.c |
| 34 | + hashlink/include/pcre/pcre_dfa_exec.c |
| 35 | + hashlink/include/pcre/pcre_exec.c |
| 36 | + hashlink/include/pcre/pcre_fullinfo.c |
| 37 | + hashlink/include/pcre/pcre_globals.c |
| 38 | + hashlink/include/pcre/pcre_newline.c |
| 39 | + hashlink/include/pcre/pcre_string_utils.c |
| 40 | + hashlink/include/pcre/pcre_tables.c |
| 41 | + hashlink/include/pcre/pcre_ucd.c |
| 42 | + hashlink/include/pcre/pcre_xclass.c |
| 43 | + hashlink/include/pcre/pcre16_valid_utf16.c |
| 44 | + hashlink/include/pcre/pcre16_ord2utf16.c |
| 45 | +) |
| 46 | + |
| 47 | +include_directories( |
| 48 | + out |
| 49 | + hashlink/src |
| 50 | + hashlink/include/pcre |
| 51 | +) |
| 52 | + |
| 53 | +add_library(heapsapp SHARED |
| 54 | + ${pcre} |
| 55 | + ${libhl} |
| 56 | + out/main.c |
| 57 | +) |
| 58 | + |
| 59 | +target_link_libraries(heapsapp log) |
| 60 | + |
| 61 | + |
| 62 | + |
0 commit comments