forked from ModOrganizer2/modorganizer-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (30 loc) · 853 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
cmake_minimum_required(VERSION 3.16)
project(archive)
if(NOT DEFINED DEPENDENCIES_DIR)
set(DEPENDENCIES_DIR ${CMAKE_SOURCE_DIR}/../../..)
endif()
message(${DEPENDENCIES_DIR}/modorganizer_super/cmake_common)
if(EXISTS ${DEPENDENCIES_DIR}/modorganizer_super/cmake_common)
set(project_type dll)
set(enable_warnings OFF)
include(${DEPENDENCIES_DIR}/modorganizer_super/cmake_common/project.cmake)
else()
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
include(FetchContent)
set(FETCHCONTENT_QUIET FALSE)
FetchContent_Declare(
sevenz
URL https://www.7-zip.org/a/7z1900-src.7z
)
FetchContent_Declare(
fmtlib
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
GIT_TAG 6.2.1
GIT_PROGRESS TRUE
)
FetchContent_MakeAvailable(fmtlib sevenz)
FetchContent_GetProperties(sevenz
SOURCE_DIR SEVENZ_ROOT
)
endif()
add_subdirectory(src)