JasonNg91 / GNSS-Metadata-Standard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GNSS-Metadata-Standard

This project uses CMake. To create a project for your IDE follow the steps below.

Windows:

run the following commands:

cd GNSS-Metadata-Standard
mkdir build
cd build
cmake ../ -G "Visual Studio 14 2015 Win64"

Then open the .sln project and build the 'Release' configuration

Mac OS (Xcode)

cd GNSS-Metadata-Standard
mkdir build
cd build
cmake ../ -G Xcode

Then open the .xcodeproj project and build the 'Release' configuration

Unix (make) or Mac OS (make)

cd GNSS-Metadata-Standard
mkdir build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release
make

To thest the code, change to the 'install' directory and run the acompanying matlab/octave script called 'check_converter.m'.
If everything has build OK then you should see the following output:

Deleting old files: .....Done.
Running the test converter ("TestConverter"): Done.
Checking the converted output:
FHG: OK
IFEN: OK
JRC: OK
TRIGR: OK
SJTU: SKIPPED

Test completed.

To add the the "GNSS-Metadata-Standard Converter" to your CMake managed project, add the following lines to your CMakeLists.txt file:

include_directories(
path_to_where_you_copied_the_repository/GNSS-Metadata-Standard/source/api/inc
path_to_where_you_copied_the_repository/GNSS-Metadata-Standard/source/converter/inc
)
add_subdirectory(
path_to_where_you_copied_the_repository/GNSS-Metadata-Standard/source
)

target_link_libraries( your_library_or_executable api xml cnv )

and include the following in your main.cpp file

#include "GnssMetadata.h"
#include "Converter.h"

To add the only the "GNSS-Metadata-Standard API" to your CMake managed project,
add the following lines to your CMakeLists.txt file:

include_directories(
path_to_where_you_copied_the_repository/GNSS-Metadata-Standard/source/api/inc
)
add_subdirectory(
path_to_where_you_copied_the_repository/GNSS-Metadata-Standard/source
)

target_link_libraries( your_library_or_executable api xml )

and include the following in your main.cpp file

#include "GnssMetadata.h"

About

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 42.9%Language:XSLT 31.6%Language:HTML 20.8%Language:MATLAB 2.7%Language:CMake 1.8%Language:C 0.2%