-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
49 lines (40 loc) · 1.2 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
42
43
44
45
46
47
48
49
cmake_minimum_required (VERSION 3.6)
project(sleepydiscord-sqmod)
# 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)
option(PLUGIN_DEVEL "Plugin development mode." ON)
set(BUILD_SHARED_LIBS 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
)
download_project(
PROJ sdk
GIT_REPOSITORY https://github.com/VCMP-SqMod/ModuleSDK.git
GIT_TAG master
SOURCE_DIR ${PROJECT_SOURCE_DIR}/sdk
UPDATE_DISCONNECTED 1
)
# Include SDK library
add_subdirectory(sdk)
add_subdirectory(sleepy-discord)
add_subdirectory(src)