CMakeLists.txt 543 B

1234567891011121314
  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. # state that we depend on Tutorial_BINARY_DIR but consumers don't, as the
  5. # TutorialConfig.h include is an implementation detail
  6. target_include_directories(MathFunctions
  7. INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
  8. PRIVATE ${Tutorial_BINARY_DIR}
  9. )
  10. # install rules
  11. install(TARGETS MathFunctions DESTINATION lib)
  12. install(FILES MathFunctions.h DESTINATION include)