-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (24 loc) · 866 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
31 lines (24 loc) · 866 Bytes
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
cmake_minimum_required (VERSION 3.8)
project(GithubGrabber CXX)
option(BUILD_APPS "Build Apps" ON)
cmake_dependent_option(BUILD_APP_Grabber "Build App Grabber" ON BUILD_APPS OFF)
cmake_dependent_option(BUILD_APP_Checker "Build App Checker" ON BUILD_APPS OFF)
cmake_dependent_option(BUILD_APP_GitMerger "Build App Checker" ON BUILD_APPS OFF)
set(CMAKE_CXX_STANDARD 11)
# For core
find_package(CURL CONFIG REQUIRED)
find_package(jsoncpp CONFIG REQUIRED)
find_package(xlsxio CONFIG REQUIRED)
if (TARGET xlsxio::xlsxio_write_SHARED)
set(XLSX_TARGETS xlsxio::xlsxio_write_SHARED)
elseif(TARGET xlsxio::xlsxio_write_STATIC)
set(XLSX_TARGETS xlsxio::xlsxio_write_STATIC)
else()
message(FATAL_ERROR "Can't find dependency xlsxio.")
endif()
add_subdirectory(grabber)
# For Gui
if (BUILD_APPS)
find_package(duilib CONFIG REQUIRED)
add_subdirectory(app)
endif()