Tutorial: Improve Step 9

* Move USE_MYMATH from configured header to target_compile_definitions
This commit is contained in:
Betsy McPhail
2019-07-18 15:40:25 -04:00
committed by Brad King
parent 6a35d630dc
commit 6f6a32a0f6
11 changed files with 22 additions and 20 deletions
@@ -22,10 +22,6 @@ target_include_directories(MathFunctions
PRIVATE ${CMAKE_CURRENT_BINARY_DIR}
)
# use compile definitions to state if we have enabled USE_MYMATH
# and that anything that links to use will get this define
target_compile_definitions(MathFunctions INTERFACE "USE_MYMATH")
# install rules
install(TARGETS MathFunctions DESTINATION lib)
install(FILES MathFunctions.h DESTINATION include)