Skip to content
Snippets Groups Projects
Commit 506ca3ff authored by Jesse Mapel's avatar Jesse Mapel Committed by jlaura
Browse files

Added GSL (#40)

* added environment file

* Added GSL

* Fixed travis.yml:

* Maybed actually fixed travis

* More travis fixes
parent a7cbbbe6
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,8 @@ install:
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda install -y -c conda-forge cmake
- conda env create -f environment.yml -n eal
- source activate eal
script:
- mkdir build
......
......@@ -17,6 +17,9 @@ include(CTest)
set(CMAKE_CXX_STANDARD 11)
# Third Party Dependencies
find_package(GSL)
# Library setup
add_library(usgsephem SHARED
src/eal.cpp
......@@ -28,13 +31,18 @@ set_target_properties(usgsephem PROPERTIES
set(EPHEM_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include/"
"${CMAKE_CURRENT_SOURCE_DIR}/include/json")
target_include_directories(usgsephem
PRIVATE
${GSL_INCLUDE_DIRS}
PUBLIC
"${EPHEM_INCLUDE_DIRS}"
${EPHEM_INCLUDE_DIRS}
)
# Setup for GoogleTest
find_package (Threads)
target_link_libraries(usgsephem PUBLIC
target_link_libraries(usgsephem
PRIVATE
${GSL_LIBRARIES}
PUBLIC
gtest ${CMAKE_THREAD_LIBS_INIT})
# Setup for ctest
......
name: eal
channels:
- conda-forge
dependencies:
- cmake>=3.10
- gsl
#include "eal.h"
#include <json.hpp>
#include <gsl/gsl_spline.h>
#include <string>
using json = nlohmann::json;
using namespace eal;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment