Files
ports/CMakeLists.txt
Max Logaev 4d8e694c2e toolchain: Added autoconf-2.69 and automake-1.15.1
Environment variables changed:
- KOS_SDK_DIR to install libraries
- KOS_PORTS_DIR for ported applications to KolibriOS

Signed-off-by: Max Logaev <maxlogaev@proton.me>
2025-12-24 17:25:22 +03:00

30 lines
705 B
CMake

cmake_minimum_required(VERSION 3.31)
project(kolibrios-ports)
include(ExternalProject)
# Number of threads for build
set(JOBS 6)
# Installation directory for GCC and Binutils
if(NOT DEFINED ENV{KOS_SDK_DIR})
message(FATAL_ERROR "The environment variable KOS_SDK_DIR is not set!")
endif()
set(KOS_SDK_DIR $ENV{KOS_SDK_DIR})
message(STATUS "KOS_SDK_DIR=${KOS_SDK_DIR}")
# Directory for installing ports
if(NOT DEFINED ENV{KOS_PORTS_DIR})
message(FATAL_ERROR "The environment variable KOS_PORTS_DIR is not set!")
endif()
set(KOS_PORTS_DIR $ENV{KOS_PORTS_DIR})
message(STATUS "SDK_SYSROOT_DIR=${KOS_PORTS_DIR}")
add_subdirectory(toolchain)
add_subdirectory(libraries)
add_subdirectory(tests)