-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (37 loc) · 959 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
36
37
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 3.14...3.27)
project(
GAFT
VERSION 0.1
DESCRIPTION "Library, GUI, and CLI to flatten and tag file trees."
LANGUAGES CXX
)
# if main project
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
set(CMAKE_CXX_STANDARD 20)
#set(CMAKE_CXX_EXTENSIONS OFF)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
find_package(Doxygen)
if(DOXYGEN_FOUND)
add_subdirectory(docs)
else()
message(STATUS "Doxygen not found. Not building Docs.")
endif()
endif()
# dependencies
include(FetchContent)
FetchContent_Declare(
Boost
GIT_REPOSITORY https://github.com/boostorg/boost.git
GIT_TAG boost-1.83.0
)
FetchContent_MakeAvailable(Boost)
find_package(Boost)
FetchContent_Declare(raylib
GIT_REPOSITORY https://github.com/raysan5/raylib
GIT_TAG "master"
GIT_PROGRESS TRUE
)
FetchContent_MakeAvailable(raylib)
find_package(raylib)
add_subdirectory(src)
add_subdirectory(apps)