-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
26 lines (22 loc) · 895 Bytes
/
CMakeLists.txt
File metadata and controls
26 lines (22 loc) · 895 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
# CMakeLists.txt for Lithium-Thirdparty
# This project is licensed under the terms of the GPL3 license.
#
# Project Name: Lithium-Thirdparty
# Description: All of the built-in thirdparty libraries
# Author: Max Qian
# License: GPL3
cmake_minimum_required(VERSION 3.20)
project(lithium.thirdparty LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/")
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules/")
function(add_subdirectories_recursively start_dir)
file(GLOB entries "${start_dir}/*")
foreach(entry ${entries})
if(IS_DIRECTORY ${entry} AND EXISTS "${entry}/CMakeLists.txt")
message(STATUS "Adding thirdparty library subdirectory: ${entry}")
add_subdirectory(${entry})
endif()
endforeach()
endfunction()
add_subdirectories_recursively(${CMAKE_CURRENT_SOURCE_DIR})