diff --git a/CMakeLists.txt b/CMakeLists.txt index e22a9445e240502779c93812c251631f763e1faf..3fd1f5876ccdcadc4a32aeec370b0f75ce361a0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,12 +20,14 @@ set(CMAKE_CXX_STANDARD 11) # Library setup add_library(usgsephem SHARED src/TestObject.cpp + src/eal.cpp ) set_target_properties(usgsephem PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION 1 ) -set(EPHEM_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include") +set(EPHEM_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include/" + "${CMAKE_CURRENT_SOURCE_DIR}/include/json") target_include_directories(usgsephem PUBLIC "${EPHEM_INCLUDE_DIRS}" diff --git a/include/eal.h b/include/eal.h new file mode 100644 index 0000000000000000000000000000000000000000..72e8ef35b403b46863247a151adb4e309f0def4e --- /dev/null +++ b/include/eal.h @@ -0,0 +1,14 @@ +#ifndef eal_H +#define eal_H + +#include + +class eal { + +public: + + std::string constructStateFromIsd(const std::string positionRotationData) const; + +}; + +#endif diff --git a/src/eal.cpp b/src/eal.cpp index a8b101a90eef3758e59965fb91d7686c253e92f4..6f2729f1ea8718940378918157a1ddca7cd1e663 100644 --- a/src/eal.cpp +++ b/src/eal.cpp @@ -1,11 +1,13 @@ +#include "eal.h" + #include +#include using json = nlohmann::json; -std::string eal::constructStateFromIsd(const std::string positionRotationData) const -{ +std::string eal::constructStateFromIsd(const std::string positionRotationData) const { // Parse the position and rotation data from isd json isd = json::parse(positionRotationData); json state;