blob: d7741f7bb4e5870dc0c406a55e67098cfbb29182 (
plain)
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
|
add_library(
script_api STATIC
client.h
cvar.h
http_client.h
lnettlelib.c
lnettlelib.h
lnettlelib.h
nettle.h
rapidjson.h
rapidjson/document.cpp
rapidjson/file.hpp
rapidjson/luax.hpp
rapidjson/rapidjson.cpp
rapidjson/schema.cpp
rapidjson/userdata.hpp
rapidjson/values.cpp
rapidjson/values.hpp
)
include_directories(
# these are in global namespace
${CMAKE_CURRENT_SOURCE_DIR}/../../external/lua-5.3.3/include
${CMAKE_CURRENT_SOURCE_DIR}/../../external/sol
${CMAKE_CURRENT_SOURCE_DIR}/../common
# these have they're own namespace
${CMAKE_CURRENT_SOURCE_DIR}/../../external/nettle-3.3
${CMAKE_CURRENT_SOURCE_DIR}/../../external/rapidjson
)
target_link_libraries(
script_api
lua
)
|