Files
Tahgibu/cmake/PlatformConfig.cmake
T
2026-10-24 11:52:16 -03:00

14 lines
511 B
CMake

# Diferencias entre sistemas operativos.
if(WIN32)
set(TAHGIBU_PLATFORM_SOURCES src/platform/windows/platform_windows.c)
set(TAHGIBU_PLATFORM_LIBS "")
elseif(UNIX)
set(TAHGIBU_PLATFORM_SOURCES src/platform/linux/platform_linux.c)
set(TAHGIBU_PLATFORM_LIBS ${CMAKE_DL_LIBS} m)
else()
message(FATAL_ERROR "Sistema operativo no soportado: Tahgibu 2.0.0 apunta a Linux y Windows de 64 bits.")
endif()
if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
message(WARNING "Tahgibu se ha probado solo en 64 bits.")
endif()