-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (33 loc) · 1.38 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.20)
project(StreamlineX)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
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"
"conan.cmake")
endif()
include(conan.cmake)
conan_cmake_profile(FILEPATH "${CMAKE_BINARY_DIR}/profile"
SETTINGS os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=9
compiler.libcxx=libstdc++11
build_type=Release
OPTIONS qt:shared=True
CONF "tools.system.package_manager:mode=install"
"tools.system.package_manager:sudo=True")
conan_cmake_run(REQUIRES
glfw/3.3.8
BASIC_SETUP CMAKE_TARGETS
GENERATORS cmake_find_package cmake_paths
BUILD missing
PROFILE profile
)
include(${CMAKE_BINARY_DIR}/conan_paths.cmake)
add_subdirectory(serialization)
add_subdirectory(EventSystem)
add_subdirectory(server)
add_subdirectory(client)