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
- copy the FindOpengps.cmake from the src\tools\CustomCmake directory of the OpenGPS sources to a subdirectory of your project (e.g. CustomCmake)
- 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})
- 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
- 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
[Category:Programmers_help] [Category:x3p]