From 01f5238a9dae36760671493bc1b770f745246246 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 4 Nov 2019 21:09:13 +1100 Subject: [PATCH] [porthole] initial client implementation --- VERSION | 2 +- porthole/CMakeLists.txt | 10 ++++++++-- porthole/src/linux/CMakeLists.txt | 6 ++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index e0111596..2de2766a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-24-g5e3a46beb9+1 \ No newline at end of file +B1-25-gc382a5acb1+1 \ No newline at end of file diff --git a/porthole/CMakeLists.txt b/porthole/CMakeLists.txt index 56a2af3b..e11bb3d9 100644 --- a/porthole/CMakeLists.txt +++ b/porthole/CMakeLists.txt @@ -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 diff --git a/porthole/src/linux/CMakeLists.txt b/porthole/src/linux/CMakeLists.txt index c9fb44db..e259db8d 100644 --- a/porthole/src/linux/CMakeLists.txt +++ b/porthole/src/linux/CMakeLists.txt @@ -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