forked from Sirius902/LuaBackend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
37 lines (25 loc) · 887 Bytes
/
CMakeLists.txt
File metadata and controls
37 lines (25 loc) · 887 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
27
28
29
30
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.13)
project(LuaBackendHook)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# LuaBackendLIB
add_library(LuaBackendLIB STATIC
LuaBackendLIB/source/DCInstance.cpp
LuaBackendLIB/source/GitRequest.cpp
LuaBackendLIB/source/LuaBackend.cpp
)
target_include_directories(LuaBackendLIB PUBLIC
LuaBackendLIB/include
LuaBackendLIB/include/lua
LuaBackendLIB/include/discord
)
target_link_directories(LuaBackendLIB PUBLIC
LuaBackendLIB/libraries/lua
LuaBackendLIB/libraries/discord
)
target_link_libraries(LuaBackendLIB PUBLIC lua54.lib PUBLIC discord-rpc.lib)
target_compile_definitions(LuaBackendLIB PRIVATE -DUNICODE -D_UNICODE)
# DBGHELP
add_library(DBGHELP SHARED LuaBackendDLL/main_dll.cpp)
target_compile_definitions(DBGHELP PRIVATE -DUNICODE -D_UNICODE)
target_link_libraries(DBGHELP LuaBackendLIB)