-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
35 lines (26 loc) · 971 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.18)
project(fuseec VERSION 0.0.0 LANGUAGES C)
if(CMAKE_POLICY_DEFAULT_CMP0017 OR CMAKE_POLICY_DEFAULT_CMP0020)
# touch these to remove warnings
endif()
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif()
if("${CMAKE_SYSTEM_NAME}" EQUAL "Linux")
set(LINUX 1 CACHE INTERNAL)
elseif("${CMAKE_SYSTEM_NAME}" EQUAL "FreeBSD")
set(FREEBSD 1 CACHE INTERNAL)
endif()
if (WIN32)
set(EMBED_USB_DATABASE_DEFAULT ON)
else()
set(EMBED_USB_DATABASE_DEFAULT OFF)
endif()
option(BUILD_CLI "Build the CLI client" OFF)
option(BUILD_QT "Build the Qt GUI client" ON)
option(EMBED_USB_DATABASE "" ${EMBED_USB_DATABASE_DEFAULT})
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
add_compile_definitions(VERSION=${CMAKE_PROJECT_VERSION})
add_subdirectory(assets)
add_subdirectory(src)