refactor(cmake): split CMakeLists into modules (#1587)

This commit is contained in:
ReenigneArcher
2023-09-04 20:16:30 -04:00
committed by GitHub
parent 9543bc77d8
commit 92b4eeee55
41 changed files with 1240 additions and 964 deletions

15
cmake/macros/common.cmake Normal file
View File

@@ -0,0 +1,15 @@
# common macros
# this file will also load platform specific macros
# platform specific macros
if(WIN32)
include(${CMAKE_MODULE_PATH}/macros/windows.cmake)
elseif(UNIX)
include(${CMAKE_MODULE_PATH}/macros/unix.cmake)
if(APPLE)
include(${CMAKE_MODULE_PATH}/macros/macos.cmake)
else()
include(${CMAKE_MODULE_PATH}/macros/linux.cmake)
endif()
endif()