summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step5/MathFunctions/CMakeLists.txt
blob: 6cd88d7ec274dcc78507391620f18f4d62495e74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
add_library(MathFunctions mysqrt.cxx)

# state that anybody linking to us needs to include the current source dir
# to find MathFunctions.h, while we don't.
target_include_directories(MathFunctions
          INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
          )

# link our compiler flags interface library
target_link_libraries(MathFunctions tutorial_compiler_flags)

# TODO 1: Create a variable called installable_libs that is a list of all
# libraries we want to install (e.g. MathFunctions and tutorial_compiler_flags)
# Then install the installable libraries to the lib folder.
# Hint: Use the TARGETS and DESTINATION parameters

# TODO 2: Install the library headers to the include folder.
# Hint: Use the FILES and DESTINATION parameters