-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
39 lines (32 loc) · 1.12 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
37
38
39
cmake_minimum_required(VERSION 3.1)
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)
project(dlms-access-point
VERSION 1.0.0)
set(CMAKE_CXX_STANDARD 11)
# options off-by-default that you can enable
option(HEX_TRACE "Include detailed hex trace for DLMS messages" OFF)
# load additional detection for ASIO
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
# configure a header file to pass some of the CMake settings
# to the source code
configure_file (
"${PROJECT_SOURCE_DIR}/src/dlms-access-pointConfig.h.in"
"${PROJECT_BINARY_DIR}/dlms-access-pointConfig.h"
)
configure_file (
"${PROJECT_SOURCE_DIR}/dashboard/package.json"
"${PROJECT_BINARY_DIR}/doc/html/package.json"
COPYONLY
)
# add the binary tree to the search path for include files
# so that we will find dlms-access-pointConfig.h
include_directories("${PROJECT_BINARY_DIR}")
add_subdirectory(DLMS-COSEM)
add_subdirectory(src)
SET(CPACK_SOURCE_IGNORE_FILES "/build/;.swp;.git")
SET(CPACK_PACKAGE_VENDOR "EPRI")
set(CPACK_SOURCE_GENERATOR "TGZ")
INCLUDE(InstallRequiredSystemLibraries)
include (CPack)