forked from thiagoralves/OpenPLC_v3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-665 Add tests for glue generator as preliminary for for adding sup…
…port for DNP3
- Loading branch information
Garret Fick
committed
Apr 10, 2019
1 parent
e6206dd
commit 9185e95
Showing
5 changed files
with
15,237 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
cmake_minimum_required(VERSION 3.0.0) | ||
|
||
# CMake build for OpenPLC glue generator. The glue generator takes | ||
# generated C code from the MATIEC compiler and then generates necessary | ||
# glue to bind the MATIEC code with the OpenPLC runtime. | ||
project(openplc_gluegenerator) | ||
|
||
option(WERROR "Set all warnings to errors" ON) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) | ||
|
||
# Optional build capabilities | ||
option(OPLCGLUE_ALL "Build all optional projects (tests)" ON) | ||
option(OPLCGLUE_TEST "Build tests" OFF) | ||
|
||
if(OPLCGLUE_ALL) | ||
message("enabling all optional components") | ||
set(OPLCGLUE_TEST ON) | ||
endif() | ||
|
||
# The main application that we always build | ||
add_executable(glue_generator glue_generator.cpp) | ||
|
||
#if(OPLCGLUE_TEST) | ||
add_executable(glue_generator_test ./test/glue_generator_test.cpp) | ||
#endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.