Skip to content
Snippets Groups Projects
Commit 1e7d4ef2 authored by Summer G Stapleton's avatar Summer G Stapleton
Browse files

Adding remaining requirements to build the eal.cpp

parent cf913574
No related branches found
No related tags found
No related merge requests found
......@@ -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}"
......
#ifndef eal_H
#define eal_H
#include <string>
class eal {
public:
std::string constructStateFromIsd(const std::string positionRotationData) const;
};
#endif
#include "eal.h"
#include <json.hpp>
#include <string>
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment