Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@
[submodule "cpp-httplib-sys/lib/cpp-httplib"]
path = cpp-httplib-sys/lib/cpp-httplib
url = https://github.com/yhirose/cpp-httplib
[submodule "implot-sys/lib/implot"]
path = implot-sys/lib/implot
url = https://github.com/epezent/implot
[submodule "implot3d-sys/lib/implot3d"]
path = implot3d-sys/lib/implot3d
url = https://github.com/brenocq/implot3d
23 changes: 23 additions & 0 deletions implot-sys/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
cmake_minimum_required(VERSION 3.28)

project(implot-sys LANGUAGES CXX)

set(IMGUI_SYS_ROOT
""
CACHE STRING "Directory of imgui-sys install")
if(NOT IMGUI_SYS_ROOT)
message(FATAL_ERROR "Must specify -DIMGUI_SYS_ROOT=...")
endif()

add_library(implot STATIC lib/implot/implot.cpp lib/implot/implot_demo.cpp
lib/implot/implot_items.cpp)
target_include_directories(implot PUBLIC "${IMGUI_SYS_ROOT}/include")
target_link_directories(implot PUBLIC "${IMGUI_SYS_ROOT}/lib")
target_link_libraries(implot PUBLIC imgui)

install(
TARGETS implot
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
install(FILES lib/implot/implot.h lib/implot/implot_internal.h
DESTINATION include/)
20 changes: 20 additions & 0 deletions implot-sys/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# implot-sys
[![Clojars Project](https://img.shields.io/clojars/v/org.jank-lang.commons/implot-sys.svg)](https://releases.clojars.org/org.jank-lang.commons/implot-sys)

Raw package for implot, a Dear ImGui extension.

## Usage
Add this project to your Leiningen `:dependencies` vector:

```clojure
[org.jank-lang.commons/implot-sys "0.1-SNAPSHOT"]
```

## Example
You can find an example project [here](./example). You're welcome to copy this
to get started! To run the example project, use Leiningen:

```bash
cd example
lein run
```
Loading
Loading