Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Smart Grid Modell
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Armin Co
Smart Grid Modell
Commits
96ea0f2d
Commit
96ea0f2d
authored
4 years ago
by
Armin Co
Browse files
Options
Downloads
Patches
Plain Diff
do not compile opc everytime
parent
27a18235
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+14
-11
14 additions, 11 deletions
CMakeLists.txt
with
14 additions
and
11 deletions
CMakeLists.txt
+
14
−
11
View file @
96ea0f2d
...
...
@@ -36,7 +36,6 @@ add_executable(smart_grid.exe
src/apps/smart_grid/SmgStateMachine.cpp
src/apps/smart_grid/SmartOpcServer.cpp
src/smart_grid/SmartGridModel.cpp
# src/smart_grid/StateLogger.cpp
src/i2c/Node.cpp
src/com/Socket.cpp
src/com/Protocol.cpp
...
...
@@ -49,18 +48,22 @@ target_include_directories(smart_grid.exe PUBLIC libs/freeopcua/include)
target_link_libraries
(
smart_grid.exe opcuacore opcuaserver
)
# Add OPC UA
# macro(SET_OPTION option value)
# set(${option} ${value} CACHE "" INTERNAL FORCE)
# endmacro()
# option(BUILD_CLIENT "Build Client" OFF)
# option(BUILD_SERVER "Build Server" ON)
if
(
BUILD_OPC_UA_FOR_INSTALL
)
# option(SSL_SUPPORT_MBEDTLS "Support rsa-oaep password encryption using mbedtls library " OFF)
macro
(
SET_OPTION option value
)
set
(
${
option
}
${
value
}
CACHE
""
INTERNAL FORCE
)
endmacro
()
option
(
BUILD_CLIENT
"Build Client"
OFF
)
option
(
BUILD_SERVER
"Build Server"
ON
)
# option(BUILD_PYTHON "Build Python bindings" OFF)
# option(BUILD_TESTING "Build and run tests" OFF)
# option(BUILD_SHARED_LIBS "Build shared libraries." ON)
# add_subdirectory(libs/freeopcua)
option
(
SSL_SUPPORT_MBEDTLS
"Support rsa-oaep password encryption using mbedtls library "
OFF
)
option
(
BUILD_PYTHON
"Build Python bindings"
OFF
)
option
(
BUILD_TESTING
"Build and run tests"
OFF
)
option
(
BUILD_SHARED_LIBS
"Build shared libraries."
ON
)
add_subdirectory
(
libs/freeopcua
)
endif
(
BUILD_OPC_UA_FOR_INSTALL
)
add_executable
(
opc_server.exe src/apps/SmgOPC_server/opc_server.cpp
)
target_include_directories
(
opc_server.exe PUBLIC libs/freeopcua/include
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment