b12f27d94a41d169e5b35ad729cb13b7b8c90733
[platform/upstream/cmake.git] / Help / guide / tutorial / Step5 / MathFunctions / CMakeLists.txt
1 add_library(MathFunctions mysqrt.cxx)
2
3 # state that anybody linking to us needs to include the current source dir
4 # to find MathFunctions.h, while we don't.
5 target_include_directories(MathFunctions
6           INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
7           )
8
9 # install rules
10 install(TARGETS MathFunctions DESTINATION lib)
11 install(FILES MathFunctions.h DESTINATION include)