Imported Upstream version 3.25.0
[platform/upstream/cmake.git] / Help / guide / tutorial / Step6 / 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 # link our compiler flags interface library
10 target_link_libraries(MathFunctions tutorial_compiler_flags)
11
12 # install libs
13 set(installable_libs MathFunctions tutorial_compiler_flags)
14 install(TARGETS ${installable_libs} DESTINATION lib)
15 # install include headers
16 install(FILES MathFunctions.h DESTINATION include)