-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
32 lines (22 loc) · 879 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
cmake_minimum_required(VERSION 3.12)
project(YumeBot CXX)
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/v0.14/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake")
endif()
include(${CMAKE_BINARY_DIR}/conan.cmake)
conan_add_remote(NAME Cafe
URL https://api.bintray.com/conan/chino/Cafe)
conan_cmake_run(CONANFILE conanfile.txt
BASIC_SETUP CMAKE_TARGETS
BUILD missing)
add_subdirectory(YumeBot)
set(YUMEBOT_INCLUDE_TEST OFF CACHE BOOL "Include YumeBot.Test")
if(YUMEBOT_INCLUDE_TEST)
add_subdirectory(YumeBot.Test)
endif()
set(YUMEBOT_INCLUDE_CLI OFF CACHE BOOL "Include YumeBot.Cli")
if(YUMEBOT_INCLUDE_CLI)
add_subdirectory(YumeBot.Cli)
endif()