Browse Source

use a bit better language in the docs

master
Jørgen Lien Sellæg 5 years ago
parent
commit
a5ae33e74e
  1. 16
      CMakeLists.txt

16
CMakeLists.txt

@ -6,16 +6,19 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
# append the cmake search path to include the cmake-files to help build the # append the cmake search path to include the cmake-files to help build the
# project in lib/GraphLib/cmake_modules # project in lib/GraphLib/cmake_modules
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/lib/GraphLib/cmake_modules") set(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
"${CMAKE_SOURCE_DIR}/lib/GraphLib/cmake_modules"
)
# these two lines sets the variables starting with MathGL and FLTK used by # these two lines sets the variables starting with MathGL and FLTK used by
# add_executable and include_directories. # add_executable and include_directories.
find_package(MathGL REQUIRED) find_package(MathGL REQUIRED)
find_package(FLTK REQUIRED) find_package(FLTK REQUIRED)
# these two lines turn off building of tests and examples of the GraphLib library # these two lines turn off building of tests and examples of the GraphLib
# building of tests and examples is rarely done while developing. # library building of tests and examples is rarely done while developing. See
# see ./lib/GraphLib/CMakeLists.txt:L23 to see how these affect the library. # ./lib/GraphLib/CMakeLists.txt:L23 to see how these affect the library.
set(BUILD_EXAMPLES off) set(BUILD_EXAMPLES off)
set(ENABLE_TESTING off) set(ENABLE_TESTING off)
@ -27,9 +30,8 @@ include_directories(
${FLTK_INCLUDE_DIR} ${FLTK_INCLUDE_DIR}
# The following line might also be ${PROJECT_SOURCE_DIR}/lib/GraphLib/graphlib # The following line might also be ${PROJECT_SOURCE_DIR}/lib/GraphLib/graphlib
# If your examples say #include <graphlib/gl> you keep the next value as # If your examples say #include <graphlib/gl> you keep the next value as is.
# ${PROJECT_SOURCE_DIR}/lib/GraphLib. If it is #include <gl> you change it to # If your examples is #include <gl> you change it to how its mentioned before.
# how its mentioned before.
${PROJECT_SOURCE_DIR}/lib/GraphLib ${PROJECT_SOURCE_DIR}/lib/GraphLib
) )

Loading…
Cancel
Save