-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathCMakeLists.txt
41 lines (32 loc) · 1.08 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
cmake_minimum_required(VERSION 3.15)
project(
Kyber
DESCRIPTION "Private servers for STAR WARS Battlefront II"
HOMEPAGE_URL "https://github.com/BattleDash/Kyber"
LANGUAGES C CXX
)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
include_directories(
${PROJECT_SOURCE_DIR}/Source/Public
)
include_directories(SYSTEM INTERFACE
${PROJECT_SOURCE_DIR}/Libraries/Include
)
file(GLOB_RECURSE DLL_SOURCES CONFIGURE_DEPENDS
${PROJECT_SOURCE_DIR}/Source/Private/*.cpp
)
file(GLOB_RECURSE INCLUDE_SOURCES CONFIGURE_DEPENDS
${PROJECT_SOURCE_DIR}/Libraries/Sources/*.cpp
)
# Begone
add_compile_definitions(_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING)
add_library(Kyber MODULE ${DLL_SOURCES} ${INCLUDE_SOURCES})
file(GLOB_RECURSE LIBRARIES CONFIGURE_DEPENDS
${PROJECT_SOURCE_DIR}/Libraries/Binaries/*.lib
)
set_target_properties(Kyber PROPERTIES LINK_FLAGS "/ignore:4075 /ignore:4098 /LTCG")
target_link_libraries(Kyber Ws2_32.lib d3d11.lib dxgi.lib ${LIBRARIES})
add_subdirectory(Launcher)
add_subdirectory(Installer)