1234567891011121314151617181920212223 |
- cmake_minimum_required(VERSION 3.5)
- set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin)
- set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
- set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
- set(VERSION_MAJOR 0)
- set(VERSION_MINOR 1)
- set(VERSION_PATCH 0)
- set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
- project(nanomsgxx VERSION ${VERSION})
- # project wide C++ options and include direcories:
- set (CMAKE_CXX_STANDARD 11)
- set(CMAKE_CXX_STANDARD_REQUIRED ON)
- set(CMAKE_CXX_EXTENSIONS OFF)
- enable_testing()
- add_subdirectory(src)
- add_subdirectory(tests)
|