Browse Source

initial commit

master
Jørgen Lien Sellæg 5 years ago
commit
2fae4ab89e
  1. 5
      .clang-format
  2. 1
      .gitignore
  3. 3
      .gitmodules
  4. 13
      CMakeLists.txt
  5. 20
      README.md
  6. 1
      lib/GraphLib
  7. 5
      main.cpp

5
.clang-format

@ -0,0 +1,5 @@
IndentWidth: 2
AccessModifierOffset: -2
UseTab: Never
ColumnLimit: 0
NamespaceIndentation: All

1
.gitignore vendored

@ -0,0 +1 @@
build

3
.gitmodules vendored

@ -0,0 +1,3 @@
[submodule "lib/GraphLib"]
path = lib/GraphLib
url = https://github.com/guetzli32/GraphLib

13
CMakeLists.txt

@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 3.0)
project(cpp-main)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wall -Wextra")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/lib/GraphLib/cmake_modules")
find_package(MathGL REQUIRED)
add_subdirectory("./lib/GraphLib")
add_executable(cpp-main main.cpp ${MATHGL_LIBRARIES})

20
README.md

@ -0,0 +1,20 @@
# C++ skeleton with graphlib and fltk
## Usage
```sh
git clone https://voss.sarvern.no/zalox/cpp-skeleton-graphlib-fltk <project-name>
cd <project-name>
# with juci you can stop on this step and open the folder <project-name> is saved and press Ctrl+Enter
mkdir build
cd build
cmake ..
make
```
## Dependencies
Arch:
```sh
# use yay, pacaur or yaourt
yay -S mathgl blas
```

1
lib/GraphLib

@ -0,0 +1 @@
Subproject commit eb2ed0038cdc1a340b6c9106cc021b9009046115

5
main.cpp

@ -0,0 +1,5 @@
#include <iostream>
int main() {
std::cout << "Hello World!\n";
}
Loading…
Cancel
Save