Author Topic: How to make a project build different files with shared common source cpp files  (Read 2697 times)

Offline aso4200

  • Single posting newcomer
  • *
  • Posts: 3
Hi

I wonder if, it is possible to make a project using shared source files, but ending up making different executetables, depending on different 'main' files in the project.
I know that I can enable or disable certain source files in options for compile and/or link.
But I miss a way to quickly shift between making these different executetables, eg setting up which files in use for making the right file.
Is there a way for solving this ?

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 836
Targets?

Offline aso4200

  • Single posting newcomer
  • *
  • Posts: 3
Not sure I know what you mean with targets, but running Codeblocks 20.03 on windows 64 bit, if thats what you mean.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 836
Read the user manual, section 1.4: Create projects from build targets

Offline aso4200

  • Single posting newcomer
  • *
  • Posts: 3
Now I got it working.
Thanks for your help.