Use Common Files in all Components #940
Replies: 5 comments 8 replies
-
The header file dependencies don't work quite right yet, so you have to add: set(MOD_DEPS
Path/ToLibrary
) To your |
Beta Was this translation helpful? Give feedback.
-
I added to my component |
Beta Was this translation helpful? Give feedback.
-
Sorry - to clarify, you put the directory in the set(MOD_DEPS
App/Common
) |
Beta Was this translation helpful? Give feedback.
-
There is probably something off in the pathnames. Can you show your directory structure and where the cmake files are? |
Beta Was this translation helpful? Give feedback.
-
I may be late to the game here but it looks like the steps you are following are ok.
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I want to use some common c++ files in all my components.
What I did:
set(SOURCE_FILES
"${CMAKE_CURRENT_LIST_DIR}/Common.cpp"
)
register_fprime_module()
but when I build it cannot find the Common.h file.
I have also tried it without the CmakeList.txt file. How can add a file in a common folder and then add use those in my ComponentImpl design?
Beta Was this translation helpful? Give feedback.
All reactions