Including this library in your project

From Medusa: Coordinate Free Mehless Method implementation
Revision as of 01:50, 1 June 2018 by Jureslak (talk | contribs)

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)

# add our library's CMakeLists.txt as a subfolder
add_subdirectory(${CMAKE_SOURCE_DIR}/path/to/our/root/folder/ medusa)
include_directories(${CMAKE_SOURCE_DIR}/medusa/include/)  # include medusa headers directory

# define your own executables below
add_executable(my_name my_name.cpp)
target_link_libraries(my_name medusa)  # link to our library