HowTo: Use a config.vapi file with CMake

If you want to use a config.vapi file with your Vala project here are the basics.

  1. Setup your CMake files in your project. I use these.
  2. In your main CMakeLists.txt file you’ll need to add:
    OPTIONS
    --vapidir=${CMAKE_SOURCE_DIR}/vapi
  3. Finally, you’ll need to, of course, create a vapi directory.

Sadly, during my first adventure in the Vala world it took me quite a while to figure that out. The kind of thing that makes you feel retarded.

Advertisement
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s