-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
50 lines (40 loc) · 975 Bytes
/
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
40
41
42
43
44
45
46
47
48
49
50
cmake_minimum_required ( VERSION 3.4.3 )
project ( iec61850 CXX )
set (CMAKE_CXX_STANDARD 11)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_CXX_EXTENSIONS OFF)
if ( APPLE )
set ( CMAKE_MACOSX_RPATH OFF )
endif ( APPLE )
include ( FindPkgConfig )
pkg_search_module ( SNORT3 REQUIRED snort>=3 )
file(GLOB SOURCES "src/*" "src/asn1_iso8823/*" "src/asn1_mms/*" "src/asn1_acse/*")
add_library (
iec61850 MODULE
${SOURCES}
)
if ( APPLE )
set_target_properties (
iec61850
PROPERTIES
LINK_FLAGS "-undefined dynamic_lookup"
)
endif ( APPLE )
set_target_properties (
iec61850
PROPERTIES
PREFIX ""
)
target_include_directories (
iec61850 PUBLIC
${SNORT3_INCLUDE_DIRS}
PUBLIC include
PUBLIC include/asn1_iso8823
PUBLIC include/asn1_mms
PUBLIC include/asn1_acse
)
install (
TARGETS iec61850
LIBRARY
DESTINATION "${CMAKE_INSTALL_LIBDIR}/${CMAKE_PROJECT_NAME}/inspectors"
)