CMakeLists.txt 539 B

1234567891011121314151617181920
  1. cmake_minimum_required (VERSION 2.6)
  2. project (Tutorial)
  3. # The version number.
  4. set (Tutorial_VERSION_MAJOR 1)
  5. set (Tutorial_VERSION_MINOR 0)
  6. # configure a header file to pass some of the CMake settings
  7. # to the source code
  8. configure_file (
  9. "${PROJECT_SOURCE_DIR}/TutorialConfig.h.in"
  10. "${PROJECT_BINARY_DIR}/TutorialConfig.h"
  11. )
  12. # add the binary tree to the search path for include files
  13. # so that we will find TutorialConfig.h
  14. include_directories("${PROJECT_BINARY_DIR}")
  15. # add the executable
  16. add_executable(Tutorial tutorial.cxx)