mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-23 05:57:19 +00:00
14 lines
276 B
CMake
14 lines
276 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
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})
|