forked from univrsal/input-overlay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (25 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
cmake_minimum_required(VERSION 3.5)
project(io-base VERSION 5.0.0)
set(INPUT_OVERLAY_VERSION "5.0.0" CACHE STRING "" FORCE)
option(ENABLE_CLIENT "Wether to build the client (default: ON)" ON)
option(ENABLE_TOOL "Wether to build the config creation tool (default: ON)" ON)
option(ENABLE_PLUGIN "Wether to build the obs plugin (default: ON)" ON)
set(PLUGIN_AUTHOR "univrsal")
set(PLUGIN_GIT input-overlay)
set(LINUX_MAINTAINER_EMAIL "[email protected]")
set(MACOS_BUNDLEID "cf.vrsal.inputoverlay")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
add_subdirectory(deps)
if (ENABLE_CLIENT)
add_subdirectory(projects/client)
endif()
if (ENABLE_TOOL)
add_subdirectory(projects/cct)
endif()
if (ENABLE_PLUGIN)
add_subdirectory(projects/plugin)
endif()
# Don't install the license when building the deb installer
if (ENABLE_CLIENT OR ENABLE_TOOL)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/COPYING.txt DESTINATION ./)
endif()