[c-host] restructure project to use cmake

This commit is contained in:
Geoffrey McRae
2019-04-09 16:28:11 +10:00
parent ccd0fd8902
commit a82b1a2e2f
25 changed files with 237 additions and 99 deletions

View File

@@ -0,0 +1,13 @@
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})