Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2SomeIP
Commits
4d4a1a40
Commit
4d4a1a40
authored
Jul 30, 2019
by
Markus Georg Bendel
Browse files
Update CMakeLists.ftl
parent
accc6f1f
Pipeline
#166352
passed with stages
in 2 minutes and 35 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
someip_adapter/CMakeLists.txt
View file @
4d4a1a40
...
...
@@ -15,8 +15,19 @@ include_directories (
)
# Linking libraries to target
add_library
(
SomeIPAdapter_tests_a_compA SomeIPAdapter_tests_a_compA.cpp
)
target_link_libraries
(
SomeIPAdapter_tests_a_compA vsomeip
${
Boost_LIBRARIES
}
)
add_library
(
SomeIPAdapter_tests_a_compA SomeIPAdapter_tests_a_compA.cpp
SomeIPAdapter_tests_a_compA.cpp
SomeIPAdapter_tests_a_compA.h
tests_a_compA.cpp
tests_a_compA.h
)
list
(
APPEND LIBRARIES tests_a_compA
)
#list(APPEND LIBRARIES IAdapter_tests_a_compA)
target_link_libraries
(
SomeIPAdapter_tests_a_compA vsomeip
${
Boost_LIBRARIES
}
${
LIBRARIES
}
)
target_include_directories
(
SomeIPAdapter_tests_a_compA PUBLIC
${
INCLUDE_DIRS
}
)
# Export target to a cmake module file for outside usage
export
(
TARGETS SomeIPAdapter_tests_a_compA FILE SomeIPAdapter_tests_a_compA.cmake
)
someip_adapter/tests_a_compA.cpp
View file @
4d4a1a40
#include
<stdio.h>
#include
"tests_a_compA.h"
test
C
omp
::
tests_a_compA
(
double
out1_value
,
double
out2_value
)
test
s_a_c
omp
A
::
tests_a_compA
(
double
out1_value
,
double
out2_value
)
{
out1
=
out1_value
;
out2
=
out2_value
;
...
...
someip_adapter/tests_a_compA.h
View file @
4d4a1a40
...
...
@@ -8,7 +8,7 @@ using namespace std;
class
tests_a_compA
{
public:
tests_a_compA
(
double
value
);
tests_a_compA
(
double
out1_value
,
double
out2_
value
);
double
in1
=
1.5
;
double
in2
=
2.5
;
double
out1
=
0.1
;
...
...
src/main/resources/de/monticore/lang/monticar/generator/someip/template/CMakeLists.ftl
View file @
4d4a1a40
...
...
@@ -15,12 +15,20 @@ include_directories (
<#noparse>$
{
VSOMEIP
_
INCLUDE
_
DIRS
}
</#noparse>
)
# Linking libraries to target
add_library
(
SomeIPAdapter_
${
model
.getEscapedCompName
()}
SomeIPAdapter_$
{
model
.getEscapedCompName
()}
.cpp
SomeIPAdapter_
${
model
.getEscapedCompName
()}
.cpp
SomeIPAdapter_
${
model
.getEscapedCompName
()}
.h
${
model
.getEscapedCompName
()}
.cpp
${
model
.getEscapedCompName
()}
.h
)
list
(
APPEND
LIBRARIES $
{
model
.getEscapedCompName
()}
)
list
(
APPEND
LIBRARIES IAdapter_$
{
model
.getEscapedCompName
()}
)
# Linking libraries to target
add_library
(
SomeIPAdapter_
${
model
.getEscapedCompName
()}
SomeIPAdapter_$
{
model
.getEscapedCompName
()}
.cpp)
target_
l
in
k_libra
ries
(
SomeIPAdapter_
${
model
.getEscapedCompName
()}
vsomeip
<#noparse>$
{
B
oost_LIBRARIE
S
}
</#noparse>)
target_link_libraries
(
SomeIPAdapter_
${
model
.getEscapedCompName
()}
vsomeip <#noparse>$
{
B
oost_LIBRARIES
}
</#noparse> <#noparse>$
{
LIBRARIES
}
</#noparse>)
target_in
clude_directo
ries
(
SomeIPAdapter_
${
model
.getEscapedCompName
()}
PUBLIC
<#noparse>$
{
INCLUDE
_
DIR
S
}
</#noparse>)
# Export target to a cmake module file for outside usage
export
(
TARGETS
SomeIPAdapter_$
{
model
.getEscapedCompName
()}
FILE SomeIPAdapter_$
{
model
.getEscapedCompName
()}
.cmake)
src/test/resources/results/echoAdapter/CMakeLists.txt
View file @
4d4a1a40
...
...
@@ -14,12 +14,20 @@ include_directories (
${
VSOMEIP_INCLUDE_DIRS
}
)
# Linking libraries to target
add_library
(
SomeIPAdapter_tests_a_compA SomeIPAdapter_tests_a_compA.cpp
SomeIPAdapter_tests_a_compA.cpp
SomeIPAdapter_tests_a_compA.h
tests_a_compA.cpp
tests_a_compA.h
)
list
(
APPEND LIBRARIES tests_a_compA
)
list
(
APPEND LIBRARIES IAdapter_tests_a_compA
)
# Linking libraries to target
add_library
(
SomeIPAdapter_tests_a_compA SomeIPAdapter_tests_a_compA.cpp
)
target_
l
in
k_libra
ries
(
SomeIPAdapter_tests_a_compA
vsomeip
${
Boost_LIBRARIE
S
}
)
target_link_libraries
(
SomeIPAdapter_tests_a_compA vsomeip
${
Boost_LIBRARIES
}
${
LIBRARIES
}
)
target_in
clude_directo
ries
(
SomeIPAdapter_tests_a_compA
PUBLIC
${
INCLUDE_DIR
S
}
)
# Export target to a cmake module file for outside usage
export
(
TARGETS SomeIPAdapter_tests_a_compA FILE SomeIPAdapter_tests_a_compA.cmake
)
src/test/resources/results/echoCMake/CMakeLists.txt
View file @
4d4a1a40
...
...
@@ -14,12 +14,20 @@ include_directories (
${
VSOMEIP_INCLUDE_DIRS
}
)
# Linking libraries to target
add_library
(
SomeIPAdapter_tests_a_compA SomeIPAdapter_tests_a_compA.cpp
SomeIPAdapter_tests_a_compA.cpp
SomeIPAdapter_tests_a_compA.h
tests_a_compA.cpp
tests_a_compA.h
)
list
(
APPEND LIBRARIES tests_a_compA
)
list
(
APPEND LIBRARIES IAdapter_tests_a_compA
)
# Linking libraries to target
add_library
(
SomeIPAdapter_tests_a_compA SomeIPAdapter_tests_a_compA.cpp
)
target_
l
in
k_libra
ries
(
SomeIPAdapter_tests_a_compA
vsomeip
${
Boost_LIBRARIE
S
}
)
target_link_libraries
(
SomeIPAdapter_tests_a_compA vsomeip
${
Boost_LIBRARIES
}
${
LIBRARIES
}
)
target_in
clude_directo
ries
(
SomeIPAdapter_tests_a_compA
PUBLIC
${
INCLUDE_DIR
S
}
)
# Export target to a cmake module file for outside usage
export
(
TARGETS SomeIPAdapter_tests_a_compA FILE SomeIPAdapter_tests_a_compA.cmake
)
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment