Skip to content

Commit

Permalink
Update LinkingProjects.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pomerlef committed May 14, 2015
1 parent d530ee1 commit b864dae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions doc/LinkingProjects.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ In this following example, we build a very simple CMake project containing one e
cmake_minimum_required (VERSION 2.6)
project (myProject)
find_package(pointmatcher 1.1.0 REQUIRED)
include_directories("${POINTMATCHER_INCLUDE_DIRS}")
message(STATUS "Using libpointmatcher version ${pointmatcher_VERSION}")
find_package(libpointmatcher 1.1.0 REQUIRED)
include_directories("${libpointmatcher_INCLUDE_DIRS}")
message(STATUS "Using libpointmatcher version ${libpointmatcher_VERSION}")
add_executable(myProgram myProgram.cpp)
target_link_libraries(myProgram ${POINTMATCHER_LIBRARIES})
target_link_libraries(myProgram ${libpointmatcher_LIBRARIES})
```
A working example of how to link to an external project can be found in [./examples/demo_cmake](../examples/demo_cmake).

## Option 2: Using Eclipse
### Using the Native Eclipse Builder
Expand Down

0 comments on commit b864dae

Please sign in to comment.