-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
33 lines (23 loc) · 1.05 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
cmake_minimum_required(VERSION 3.14)
project(XPanel VERSION 1.9 LANGUAGES CXX)
string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWERCASE)
set(PLUGIN_INSTALL_DIR ${PROJECT_NAME}/64)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/.cmake)
option(INSTALL_DEPS "Install dependencies into the plugin's directory" OFF)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_CXX_STANDARD 20 CACHE STRING "C++ standard")
set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE BOOL "C++ standard is a requirement")
set(CMAKE_CXX_EXTENSIONS OFF CACHE BOOL "C++ compiler specific extensions")
if (NOT MSVC)
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
include(CTest)
add_subdirectory(3rdparty/LUA)
add_subdirectory(3rdparty/SDK)
add_subdirectory(3rdparty/FIP-SDK)
add_subdirectory(src)
add_subdirectory(test)
install(DIRECTORY sample-config/ DESTINATION sample_configs)
install(DIRECTORY doc/ DESTINATION doc)
install(FILES sample-config/board-config.ini DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES 3rdparty/FIP-SDK/fonts/fip-fonts.bmp DESTINATION ${PLUGIN_INSTALL_DIR})