Force include headers on CMake linux

This commit is contained in:
Federico Terzi 2019-09-21 09:59:00 +02:00
parent f89899083e
commit 4746ef4e42
2 changed files with 1 additions and 3 deletions

View File

@ -4,8 +4,6 @@ set -ex
# TODO This is the "test phase", tweak it as you see fit # TODO This is the "test phase", tweak it as you see fit
main() { main() {
ls -lR /usr/include
cross build --target $TARGET cross build --target $TARGET
cross build --target $TARGET --release cross build --target $TARGET --release

View File

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0)
project(liblinuxbridge) project(liblinuxbridge)
set (CMAKE_CXX_STANDARD 14) set (CMAKE_CXX_STANDARD 14)
set (CMAKE_SHARED_LINKER_FLAGS "-lX11 -lXtst") set(CMAKE_REQUIRED_INCLUDES "/usr/local/include" "/usr/include")
add_library(linuxbridge STATIC bridge.cpp bridge.h) add_library(linuxbridge STATIC bridge.cpp bridge.h)