Skip to content

Multiple Configuration Folders #1525

Answered by kevin-f-ortega
EbenezerA99 asked this question in Q&A
Discussion options

You must be logged in to vote

You can do the following:

  1. Add a config directory in your project directory, let's call this directory config
  2. Add your config file to config, let's call this config file MyConfigFile.hpp
  3. In your project's CMakeLists.txt, add this line include_directories("${CMAKE_CURRENT_LIST_DIR}/config"). You may need to update this path to use the correct path to config
  4. In your component, include the config file using #include "MyConfigFile.hpp".

You will now be able to use fprime's config directory plus your config directory.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@EbenezerA99
Comment options

@kevin-f-ortega
Comment options

@EbenezerA99
Comment options

@Joshua-Anderson
Comment options

@EbenezerA99
Comment options

Answer selected by EbenezerA99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants