CMakeLists.txt 589 B

1234567891011121314151617181920212223
  1. cmake_minimum_required(VERSION 3.5)
  2. set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin)
  3. set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
  4. set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
  5. set(VERSION_MAJOR 0)
  6. set(VERSION_MINOR 1)
  7. set(VERSION_PATCH 0)
  8. set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
  9. project(nanomsgxx VERSION ${VERSION})
  10. # project wide C++ options and include direcories:
  11. set (CMAKE_CXX_STANDARD 11)
  12. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  13. set(CMAKE_CXX_EXTENSIONS OFF)
  14. enable_testing()
  15. add_subdirectory(src)
  16. add_subdirectory(tests)