2025-11-16 02:45:59 +09:00
|
|
|
cmake_minimum_required(VERSION 3.25)
|
2025-11-16 02:51:11 +09:00
|
|
|
project(
|
|
|
|
|
mde
|
|
|
|
|
)
|
2025-11-16 02:45:59 +09:00
|
|
|
|
2025-11-18 22:51:57 +09:00
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/mdecmake/cmake)
|
2025-11-18 19:17:18 +09:00
|
|
|
|
2025-11-18 20:34:31 +09:00
|
|
|
include(CheckIncludeFiles)
|
|
|
|
|
|
|
|
|
|
check_include_files(paths.h HAS_PATHS_H)
|
|
|
|
|
|
2025-11-18 23:25:17 +09:00
|
|
|
include(GNUInstallDirs)
|
2025-11-25 05:32:58 +09:00
|
|
|
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}")
|
|
|
|
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
2025-12-05 07:49:06 +09:00
|
|
|
configure_file(include/config.h.in config.h)
|
|
|
|
|
configure_file(wizard.sh.in wizard.sh)
|
2025-11-18 19:17:18 +09:00
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
2025-11-16 02:45:59 +09:00
|
|
|
add_subdirectory(external/milsko)
|
2025-12-24 23:42:24 +09:00
|
|
|
add_subdirectory(external/xemil)
|
2025-11-16 02:51:11 +09:00
|
|
|
|
2025-11-16 19:39:39 +09:00
|
|
|
include_directories(external)
|
|
|
|
|
|
2025-11-18 23:25:17 +09:00
|
|
|
add_subdirectory(mdeartworks)
|
2025-11-16 02:51:11 +09:00
|
|
|
add_subdirectory(mdelibs)
|
2025-11-25 11:16:13 +09:00
|
|
|
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
2025-11-16 02:51:11 +09:00
|
|
|
add_subdirectory(mdebase)
|
2025-11-25 11:16:13 +09:00
|
|
|
endif()
|
2025-11-18 19:17:18 +09:00
|
|
|
add_subdirectory(mdeutils)
|