summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step6/MathFunctions/CMakeLists.txt
blob: 226099a96685d7a6ea0e16748020a95b1e289487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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}
          )

target_link_libraries(MathFunctions tutorial_compiler_flags)

# install rules
set(installable_libs MathFunctions tutorial_compiler_flags)
install(TARGETS ${installable_libs} DESTINATION lib)
install(FILES MathFunctions.h DESTINATION include)