SOES/CMakeLists.txt

41 lines
1.1 KiB
CMake
Raw Normal View History

2015-05-07 17:44:01 +02:00
# CMakeLists files in this project can
# refer to the root source directory of the project as ${SOES_SOURCE_DIR} and
# to the root binary directory of the project as ${SOES_BINARY_DIR}.
cmake_minimum_required (VERSION 2.8.12)
2015-05-07 17:44:01 +02:00
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
project (SOES)
2019-04-17 16:17:22 +02:00
set (SOES_VERSION_MAJOR 3)
set (SOES_VERSION_MINOR 0)
2019-05-09 13:47:07 +02:00
set (SOES_VERSION_PATCH 0)
2015-05-07 17:44:01 +02:00
# Generate version numbers
configure_file (
${SOES_SOURCE_DIR}/version.h.in
${SOES_SOURCE_DIR}/soes/version.h
2015-05-07 17:44:01 +02:00
)
# Include paths
include_directories(
${SOES_SOURCE_DIR}
${SOES_SOURCE_DIR}/soes
)
2015-05-07 17:44:01 +02:00
# Platform flags and sources
include(${CMAKE_SYSTEM_NAME} OPTIONAL)
2015-05-07 17:44:01 +02:00
# Source paths
add_subdirectory (soes)
add_subdirectory (${SOES_DEMO})
2015-05-20 13:15:49 +02:00
message (STATUS "Building for ${CMAKE_SYSTEM_NAME}")
2015-05-07 17:44:01 +02:00
include (InstallRequiredSystemLibraries)
set (CPACK_RESOURCE_FILE_LICENSE "${SOES_SOURCE_DIR}/LICENSE")
set (CPACK_PACKAGE_VERSION_MAJOR "${SOES_VERSION_MAJOR}")
set (CPACK_PACKAGE_VERSION_MINOR "${SOES_VERSION_MINOR}")
set (CPACK_PACKAGE_VERSION_PATCH "${SOES_VERSION_MINOR}")
set (CPACK_PACKAGE_CONTACT info.ethercat@rt-labs.com)
include (CPack)