From dfe4e5cc7a8a352431942d47cbc36f0042e8bafa Mon Sep 17 00:00:00 2001 From: "Elf M. Sternberg" Date: Fri, 27 Jan 2017 17:48:42 -0800 Subject: [PATCH] Commented the library. --- mathfunctions/CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mathfunctions/CMakeLists.txt b/mathfunctions/CMakeLists.txt index e38e7bb..7014284 100644 --- a/mathfunctions/CMakeLists.txt +++ b/mathfunctions/CMakeLists.txt @@ -1,11 +1,29 @@ +# Defines an executable to be built in line with the project. +# add_executable(maketable maketable.cpp) + +# Defines a custom command that must be run in order to complete +# compilation. The output can be defined, and therefore must exist to +# make sense to the add_library below. +# add_custom_command ( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/table.h COMMAND maketable ${CMAKE_CURRENT_BINARY_DIR}/table.h + + # Defines a dependency, so ensures compilation order DEPENDS maketable ) include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) + +# Specify that mathfunctions is a library and list its requirements. +# Note that "table.h" is a requirement, and its source is listed +# above as an output, making it a dependency, which in turn has a +# dependency on maketable. +# add_library(mathfunctions mysqrt.cpp ${CMAKE_CURRENT_BINARY_DIR}/table.h ) + +# Specify where these things are to be installed. +# install (FILES mathfunctions.h DESTINATION include)