looking-glass/host/platform/CMakeLists.txt

14 lines
276 B
CMake
Raw Normal View History

2023-11-09 07:31:26 +00:00
cmake_minimum_required(VERSION 3.5)
project(platform LANGUAGES C)
if (UNIX)
set(PLATFORM "Linux")
elseif(WIN32)
set(PLATFORM "Windows")
endif()
add_subdirectory(${PLATFORM})
add_library(platform INTERFACE)
target_link_libraries(platform INTERFACE platform_${PLATFORM})