aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-07-13 13:32:40 +0100
committerKatharina Fey <kookie@spacekookie.de>2019-07-13 13:32:40 +0100
commita6e9107cd76c07f571b8a0cb24770e34082d49af (patch)
treefee9af9caac0a9007a19fa8a1080fb2a6a05824d
parentf738227d2f27b56453386678fe52744d1ed0b167 (diff)
Adding libbowl as a submodule dependencyHEADmaster
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 🤷
-rw-r--r--.gitmodules3
-rw-r--r--CMakeLists.txt4
m---------libbowl0
3 files changed, 6 insertions, 1 deletions
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
+Subproject ffa1caf090958692d5262a6460742902199ea3b