CMakeLists.txt 610 B

1234567891011121314151617
  1. # first we add the executable that generates the table
  2. # add the binary tree directory to the search path for include files
  3. include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
  4. add_executable(MakeTable MakeTable.cxx )
  5. # add the command to generate the source code
  6. add_custom_command (
  7. OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Table.h
  8. COMMAND MakeTable ${CMAKE_CURRENT_BINARY_DIR}/Table.h
  9. DEPENDS MakeTable
  10. )
  11. # add the main library
  12. add_library(MathFunctions mysqrt.cxx ${CMAKE_CURRENT_BINARY_DIR}/Table.h )
  13. install (TARGETS MathFunctions DESTINATION bin)
  14. install (FILES MathFunctions.h DESTINATION include)