commit e540cbac3700a78528165eaf493a89055c21fbf1
parent ba770a9dea9768987deed2b982dfc263b95eea12
Author: David Freifeld <freifeld.david@gmail.com>
Date: Fri, 7 Aug 2020 12:49:23 -0700
More setup work
Diffstat:
4 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
@@ -1,4 +1,4 @@
-name: C/C++ CI
+name: macos-latest
on:
push:
@@ -13,6 +13,8 @@ jobs:
steps:
- uses: actions/checkout@v2
+ - name: install
+ run: sh install.sh
- name: cmake .
run: cmake .
- name: make
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -1,4 +1,6 @@
cmake_minimum_required(VERSION 3.10.0)
+find_package(pybind11 CONFIG REQUIRED)
+include_directories(${pybind11_INCLUDE_DIRS})
project (jacobian)
set(CMAKE_CXX_STANDARD 11)
diff --git a/example.cpp b/example.cpp
@@ -5,10 +5,10 @@
// Created by David Freifeld
//
-#include <indicators/cursor_control.hpp>
-#include <indicators/progress_bar.hpp>
-#include <indicators/block_progress_bar.hpp>
-using namespace indicators;
+// #include <indicators/cursor_control.hpp>
+// #include <indicators/progress_bar.hpp>
+// #include <indicators/block_progress_bar.hpp>
+// using namespace indicators;
#include "./src/bpnn.hpp"
#include "./src/utils.hpp"
diff --git a/install.sh b/install.sh
@@ -0,0 +1,9 @@
+brew install eigen
+python 3 -m pip install pytest
+git clone https://github.com/pybind/pybind11.git
+mkdir build
+cd build
+cmake ..
+make check -j 4
+make
+sudo make install