CMakeLists.txt 502 B

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