From a6e9107cd76c07f571b8a0cb24770e34082d49af Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Sat, 13 Jul 2019 13:32:40 +0100 Subject: Adding libbowl as a submodule dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is not ideal but makes compiling applications with libtermkit much easier. In the future maybe we might want to switch the build system to `nix`, at which point we can more easily package the dependencies without having to rely on git submodules which can be kinda gross 🤷 --- .gitmodules | 3 +++ CMakeLists.txt | 4 +++- libbowl | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 160000 libbowl diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..29b264a --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "libbowl"] + path = libbowl + url = git@github.com:spacekookie/libbowl.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 99b1c0e..bc1de07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,10 @@ cmake_minimum_required(VERSION 2.8.11) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c99") +add_subdirectory(libbowl) + project(termkit) add_library(termkit SHARED termkit.c) -target_link_library(termkit termbox) +target_link_libraries(termkit termbox bowl) target_include_directories(termkit PUBLIC ".") diff --git a/libbowl b/libbowl new file mode 160000 index 0000000..ffa1caf --- /dev/null +++ b/libbowl @@ -0,0 +1 @@ +Subproject commit ffa1caf090958692d5262a6460742902199ea3bd -- cgit v1.2.3