-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
35 lines (29 loc) · 951 Bytes
/
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
cmake_minimum_required(VERSION 3.6)
project(sleepydiscord-squirrel)
# Several plugin options
option(FORCE_32BIT_BIN "Create a 32-bit executable binary if the compiler defaults to 64-bit." OFF)
option(FORCE_DEBUG_BIN "Create debug binary." OFF)
if (FORCE_DEBUG_BIN)
set(CMAKE_BUILD_TYPE Debug)
message("Configuring Debug builds.")
else ()
set(CMAKE_BUILD_TYPE Release)
message("Configuring Release builds.")
endif ()
# Enable position independent code
if (UNIX)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(USE_SYSTEM_CURL OFF)
set(CMAKE_USE_OPENSSL ON)
endif ()
include(ExternalProject)
include(buildtools/cmake/DownloadProject.cmake)
download_project(
PROJ sleepy-discord
GIT_REPOSITORY https://github.com/yourWaifu/sleepy-discord.git
GIT_TAG develop
SOURCE_DIR ${PROJECT_SOURCE_DIR}/sleepy-discord
UPDATE_DISCONNECTED 1
)
add_subdirectory(sleepy-discord)
add_subdirectory(src)