-
Notifications
You must be signed in to change notification settings - Fork 19
/
CMakeLists.txt
40 lines (27 loc) · 1.18 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
cmake_minimum_required(VERSION 3.22)
project(
"airdcpp-windows"
DESCRIPTION "Communal peer-to-peer file sharing application"
)
set(CMAKE_EXPORT_COMPILE_COMMANDS YES)
set (PROJECT_NAME "AirDC++")
set (TAG_APPLICATION "AirDC++")
set (APPLICATION_ID "airdcpp-windows")
set (VERSION "3.22b")
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_EXPORT_COMPILE_COMMANDS YES)
# global MSVC runtime linking for all project targets
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
# global debug postfix for libraries (executables still need to set it)
set(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "Filename postfix for libraries under DEBUG configuration")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_RELEASE} /Zi")
#set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF")
add_compile_options("$<$<NOT:$<CONFIG:Debug>>:/Zi>")
add_link_options("$<$<NOT:$<CONFIG:Debug>>:/DEBUG>")
add_link_options("$<$<NOT:$<CONFIG:Debug>>:/OPT:REF>")
add_link_options("$<$<NOT:$<CONFIG:Debug>>:/OPT:ICF>")
add_compile_options("/permissive-")
add_subdirectory(airdcpp)
add_subdirectory(airdcpp-webapi)
add_subdirectory(windows)