cmake-3.25.1-tutorial-source/Step4/MathFunctions/CMakeLists.txt

10 lines
301 B
CMake
Raw Normal View History

2022-12-11 21:34:46 +08:00
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}
)
# TODO 3: Link to tutorial_compiler_flags