1
0

CMakeLists.txt 570 B

12345678910111213141516
  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. target_include_directories(MathFunctions
  5. INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
  6. )
  7. # link our compiler flags interface library
  8. target_link_libraries(MathFunctions tutorial_compiler_flags)
  9. # install libs
  10. set(installable_libs MathFunctions tutorial_compiler_flags)
  11. install(TARGETS ${installable_libs} DESTINATION lib)
  12. # install include headers
  13. install(FILES MathFunctions.h DESTINATION include)