forked from OpenEtherCATsociety/SOES
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (29 loc) · 1.11 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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.4)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
project (SOES)
set (SOES_VERSION_MAJOR 0)
set (SOES_VERSION_MINOR 1)
set (SOES_VERSION_PATCH 0)
# Generate version numbers
configure_file (
"${SOES_SOURCE_DIR}/version.h.in"
"${SOES_SOURCE_DIR}/soes/version.h"
)
# Include paths
include_directories("${SOES_SOURCE_DIR}/soes")
# Platform flags and sources
include(${CMAKE_SYSTEM_NAME} OPTIONAL)
# Source paths
add_subdirectory (soes)
add_subdirectory (applications/rtl_slavedemo)
message (STATUS "Building for ${CMAKE_SYSTEM_NAME}")
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 [email protected])
include (CPack)