Commented the library.

This commit is contained in:
Elf M. Sternberg 2017-01-27 17:48:42 -08:00
parent a7bd3031f4
commit dfe4e5cc7a
1 changed files with 18 additions and 0 deletions

View File

@ -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 (
# 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)