Commit 35244d0 1 parent 4ae306a commit 35244d0 Copy full SHA for 35244d0
File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ option(BUILD_TESTING "Run unit tests" OFF)
15
15
option (CMAKE_RUN_CLANG_TIDY "Run clang-tidy" OFF )
16
16
option (LIBOCPP_BUILD_EXAMPLES "Build charge_point and central_system binaries." OFF )
17
17
option (OCPP_INSTALL "Install the library (shared data might be installed anyway)" ${EVC_MAIN_PROJECT} )
18
+ option (LIBOCPP_INSTALL_LIBRARY "Install the libocpp library (for example when built as a shared library)" OFF )
18
19
19
20
# dependencies
20
21
find_package (Boost COMPONENTS program_options regex system thread REQUIRED)
@@ -75,6 +76,13 @@ if (OCPP_INSTALL)
75
76
)
76
77
endif ()
77
78
79
+ if (LIBOCPP_INSTALL_LIBRARY)
80
+ install (
81
+ TARGETS ocpp
82
+ LIBRARY
83
+ )
84
+ endif ()
85
+
78
86
79
87
if (LIBOCPP16_BUILD_EXAMPLES)
80
88
message ("Building libocpp 1.6 example binaries." )
You can’t perform that action at this time.
0 commit comments