[porthole] initial client implementation

This commit is contained in:
Geoffrey McRae 2019-11-04 21:09:13 +11:00
parent c382a5acb1
commit 01f5238a9d
3 changed files with 13 additions and 5 deletions

View File

@ -1 +1 @@
B1-24-g5e3a46beb9+1
B1-25-gc382a5acb1+1

View File

@ -11,12 +11,18 @@ add_library(porthole STATIC
if(WIN32)
add_subdirectory(src/windows)
target_link_libraries(porthole PRIVATE porthole-windows)
set(PLATFORM "windows")
else()
add_subdirectory(src/linux)
target_link_libraries(porthole PRIVATE porthole-linux)
set(PLATFORM "linux")
endif()
target_link_libraries(porthole
PRIVATE
porthole-${PLATFORM}
lg_common
)
target_include_directories(porthole
INTERFACE
include

View File

@ -2,10 +2,12 @@ cmake_minimum_required(VERSION 3.0)
project(porthole-linux LANGUAGES C)
add_library(porthole-linux STATIC
device.c
client.c
)
#target_link_libraries(porthole-linux)
target_link_libraries(porthole-linux
lg_common
)
target_include_directories(porthole-linux
PRIVATE