-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
110 lines (93 loc) · 4.31 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
cmake_minimum_required(VERSION 3.15)
project(awsNatWrapper VERSION 1.0 LANGUAGES C CXX)
add_definitions(-DAWS)
find_package(aws-lambda-runtime REQUIRED)
find_package(AWSSDK COMPONENTS s3)
include_directories(
./libs/rh4n_include
./libs/rh4n_vars/include
./libs/rh4n_logging/include
./libs/rh4n_utils/include
./libs/rh4n_var2name/include
./libs/rh4n_ldaparser/include
./libs/rh4n_jsongenerator/include
./apps/natuser/include
./apps/natcaller/include)
add_library(rh4nutils STATIC
./libs/rh4n_utils/src/rh4n_utils
./libs/rh4n_utils/src/rh4n_utils_prop)
set_property(TARGET rh4nutils PROPERTY POSITION_INDEPENDENT_CODE ON)
add_library(rh4nlogging STATIC
./libs/rh4n_logging/src/rh4n_logging)
set_property(TARGET rh4nlogging PROPERTY POSITION_INDEPENDENT_CODE ON)
add_library(rh4nvars STATIC
./libs/rh4n_vars/src/rh4n_vars
./libs/rh4n_vars/src/rh4n_vars_array
./libs/rh4n_vars/src/rh4n_vars_bool
./libs/rh4n_vars/src/rh4n_vars_dump
./libs/rh4n_vars/src/rh4n_vars_float
./libs/rh4n_vars/src/rh4n_vars_free
./libs/rh4n_vars/src/rh4n_vars_group
./libs/rh4n_vars/src/rh4n_vars_integer
./libs/rh4n_vars/src/rh4n_vars_load
./libs/rh4n_vars/src/rh4n_vars_print
./libs/rh4n_vars/src/rh4n_vars_string
./libs/rh4n_vars/src/rh4n_vars_ustring)
set_property(TARGET rh4nvars PROPERTY POSITION_INDEPENDENT_CODE ON)
add_library(rh4nldaparser STATIC
./libs/rh4n_ldaparser/src/rh4n_ldaparser.c
./libs/rh4n_ldaparser/src/rh4n_lda_filehandling
./libs/rh4n_ldaparser/src/rh4n_lda_array
./libs/rh4n_ldaparser/src/rh4n_lda_utils
./libs/rh4n_ldaparser/src/rh4n_lda_variables
./libs/rh4n_ldaparser/src/rh4n_lda_print
./libs/rh4n_ldaparser/src/rh4n_lda_free)
set_property(TARGET rh4nldaparser PROPERTY POSITION_INDEPENDENT_CODE ON)
add_library(rh4nvar2name STATIC
./libs/rh4n_var2name/src/rh4n_v2n
./libs/rh4n_var2name/src/rh4n_v2n_resolvenames
./libs/rh4n_var2name/src/rh4n_v2n_resolveposition)
set_property(TARGET rh4nvar2name PROPERTY POSITION_INDEPENDENT_CODE ON)
add_library(rh4njsongenerator STATIC
./libs/rh4n_jsongenerator/src/rh4n_json_generator
./libs/rh4n_jsongenerator/src/rh4n_json_group
./libs/rh4n_jsongenerator/src/rh4n_json_array)
set_property(TARGET rh4njsongenerator PROPERTY POSITION_INDEPENDENT_CODE ON)
add_library(realHTML4Natural SHARED
./apps/natuser/src/rh4n_nat_jumptab
./apps/natuser/src/ncuxinit
./apps/natuser/src/rh4n_nat_genjson
./apps/natuser/src/rh4n_nat_init
./apps/natuser/src/rh4n_nat_utils
./apps/natuser/src/rh4n_nat_variablereadout
./apps/natuser/src/rh4n_nat_geturlobj
./apps/natuser/src/rh4n_nat_mbn
./apps/natuser/src/rh4n_nat_getbodyobj
./apps/natuser/src/rh4n_nat_getbodyvar
./apps/natuser/src/rh4n_nat_geturlvar
./apps/natuser/src/rh4n_nat_getuser
./apps/natuser/src/rh4n_nat_debug_init
./apps/natuser/src/var_parm_handling/rh4n_nat_a_handling
./apps/natuser/src/var_parm_handling/rh4n_nat_i_handling
./apps/natuser/src/var_parm_handling/rh4n_nat_l_handling
./apps/natuser/src/var_parm_handling/rh4n_nat_f_handling
./apps/natuser/src/var_parm_handling/rh4n_nat_dt_handling
./apps/natuser/src/var_parm_handling/rh4n_nat_np_handling
./apps/natuser/src/var_parm_handling/rh4n_nat_u_handling
./apps/natuser/src/put_var_handling/rh4n_nat_put_a
./apps/natuser/src/put_var_handling/rh4n_nat_put_i
./apps/natuser/src/put_var_handling/rh4n_nat_put_l
./apps/natuser/src/put_var_handling/rh4n_nat_put_f
./apps/natuser/src/put_var_handling/rh4n_nat_put_aton)
target_link_libraries(realHTML4Natural PRIVATE rh4nutils rh4nlogging rh4nvars rh4nldaparser rh4nvar2name rh4njsongenerator)
add_executable(ldatest ./tests/ldaparser.c)
target_link_libraries(ldatest PRIVATE rh4nutils rh4nlogging rh4nldaparser)
add_executable(natcaller
./apps/natcaller/src/main.c
./apps/natcaller/src/rh4n_nat_errorhandling.c
./apps/natcaller/src/rh4n_nat_parmgeneration.c
./apps/natcaller/src/rh4n_natcall_process.c)
target_link_libraries(natcaller rh4nutils rh4nlogging rh4nvars rh4nldaparser rh4nvar2name rh4njsongenerator ${CMAKE_DL_LIBS})
add_executable(lambdaHandler ./apps/bootstrapper/src/main.cpp)
target_link_libraries(lambdaHandler PUBLIC AWS::aws-lambda-runtime ${AWSSDK_LINK_LIBRARIES} rh4nutils rh4nlogging rh4nvars rh4nldaparser rh4nvar2name)
aws_lambda_package_target(lambdaHandler)