CMakeLists.txt 741 B

123456789101112131415161718
  1. add_library(MathFunctions mysqrt.cxx)
  2. # state that anybody linking to us needs to include the current source dir
  3. # to find MathFunctions.h, while we don't.
  4. target_include_directories(MathFunctions
  5. INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
  6. )
  7. # link our compiler flags interface library
  8. target_link_libraries(MathFunctions tutorial_compiler_flags)
  9. # TODO 1: Create a variable called installable_libs that is a list of all
  10. # libraries we want to install (e.g. MathFunctions and tutorial_compiler_flags)
  11. # Then install the installable libraries to the lib folder.
  12. # Hint: Use the TARGETS and DESTINATION parameters
  13. # TODO 2: Install the library headers to the include folder.
  14. # Hint: Use the FILES and DESTINATION parameters