Including this library in your project

From Medusa: Coordinate Free Mehless Method implementation
Revision as of 09:42, 13 December 2017 by Jureslak (talk | contribs) (Created page with "Integration with our library is very simple if you are using `cmake`. Your basic CMakeLists.txt file should look something like this: project(your_project_name) cmake_minimum...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Integration with our library is very simple if you are using `cmake`. Your basic CMakeLists.txt file should look something like this:

project(your_project_name) cmake_minimum_required(VERSION 2.8.12)

  1. add our library as a subfolder

add_subdirectory(${CMAKE_SOURCE_DIR}/path/to/our/root/folder/ build_util) # include our source directory include_directories(${CMAKE_SOURCE_DIR}/path/to/our/root/folder/src/)

  1. if you wish to use the same third_party libraries as we do, add the to your includes

include_directories(SYSTEM PUBLIC ${CMAKE_SOURCE_DIR}/path/to/our/root/folder/src/third_party/)

  1. define your own executables below

add_executable(my_name my_name.cpp) target_link_libraries(my_name pde_utils) # link to our library