-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
48 lines (45 loc) · 1.96 KB
/
CMakeLists.txt
File metadata and controls
48 lines (45 loc) · 1.96 KB
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
cmake_minimum_required(VERSION 3.15...3.26)
project(${SKBUILD_PROJECT_NAME} LANGUAGES C)
# This CMake file is meant to be executed using 'scikit-build-core'.
if (NOT SKBUILD)
message(WARNING "\
This CMake file is meant to be executed using 'scikit-build-core'.
Running it directly will almost certainly not produce the desired
result. If you are a user trying to install this package, use the
command below, which will install all necessary build dependencies,
compile the package in an isolated environment, and then install it.
=====================================================================
$ pip install .
=====================================================================
If you are a software developer, and this is your own package, then
it is usually much more efficient to install the build dependencies
in your environment once and use the following command that avoids
a costly creation of a new virtual environment at every compilation:
=====================================================================
$ pip install scikit-build-core[pyproject]
$ pip install --no-build-isolation -ve .
=====================================================================
You may optionally add -Ceditable.rebuild=true to auto-rebuild when
the package is imported. Otherwise, you need to rerun the above
after editing C++ files.")
endif()
include(cmake/icspacket-common.cmake)
include(cmake/icspacket-defs.cmake)
# -----------------------------------------------------------------------------
# icspacket ASN.1 extensions
# -----------------------------------------------------------------------------
add_asn1_extension(
NAME _iso8823
DIR "${ICS_SOURCE_DIR}/proto/iso_pres/_iso8823"
INSTALL "proto/iso_pres"
)
add_asn1_extension(
NAME _mms
DIR "${ICS_SOURCE_DIR}/proto/mms/_mms"
INSTALL "proto/mms"
)
add_asn1_extension(
NAME _iec61850
DIR "${ICS_SOURCE_DIR}/proto/iec61850/_iec61850"
INSTALL "proto/iec61850"
)