Menu

How_to_include_X3P_Library Log in to Edit

Dr. Schorsch Ben

Who should read this guide?

  • If you are using CMake to generate your software projects
  • If you have a binary version of the ISO5436_2 library and want to use it in your own software project
  • If you have a self compiled version of the ISO5436_2 library and want to use it in your own software project

How to use the ISO5436_2 library in your project using CMake

  1. copy the FindOpengps.cmake from the src\tools\CustomCmake directory of the OpenGPS sources to a subdirectory of your project (e.g. CustomCmake)
  2. add the following statementes to your project's CMakeLists.txt file :

> set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CustomCmake/")
FIND_PACKAGE( Opengps REQUIRED )

include_directories (${OPENGPS_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(<yourProjectName> ${OPENGPS_LIBRARY})

  1. when running cmake you might have to set OPENGPS_ROOT_DIR variable to the iso5436-2-xml directory of your binary ISO5436_2 library version
  2. when using shared libs, you have to make sure that the iso5436-2-xml.dll_, xerces-c.dll and zlib*.dll (or linux equivalents) are located in your excuting directory or some directory contained in your system's PATH variable

How to use the ISO5436_2 library in your project using Microsoft Visual Studio

  • ToDo

[Category:Programmers_help] [Category:x3p]


Related

Wiki: Main_Page

Discussion

Anonymous
Anonymous

Add attachments
Cancel