taskWkCMake - Tasks: task #7619, WkAddSubdirectory

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

task #7619: WkAddSubdirectory

Submitted by:  Alexandre VINCENT <asmodehn>
Submitted on:  Tue 04 Sep 2012 07:08:36 AM UTC  
Should Start On: Mon 03 Sep 2012 03:00:00 PM UTCShould be Finished on: Mon 03 Sep 2012 03:00:00 PM UTC
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Percent Complete: 80%Assigned to: None
Open/Closed: OpenEffort: 0.00

Mon 10 Sep 2012 02:34:00 PM UTC, comment #3:

I just made safe WkCMake.cmake scripts for add_subdirectory.
The top WkCMake overrides all others in cmake configuration tree.

Last step todo : set up subProject_DIR variable, so that a WkDepends automatically knows where to find the dependency.

Alexandre VINCENT <asmodehn>
Sun 09 Sep 2012 06:29:49 AM UTC, comment #2:

At rev.197 directories were made part of projects, so we can have different structure between projects in subdiretories.

This needs to be tested ( ProjectB has a dependency called projectCsub now ).

Then more work needs to be done to ensure we can use add_subdirectory properly. or if we need a special WkAddSubdirectory...

Alexandre VINCENT <asmodehn>
Sat 08 Sep 2012 02:01:49 AM UTC, comment #1:

This is actually true only for directories (bin, source, etc.)
It is not true for machine configuration ( astyle, cppcheck, etc. )

It would probably make more sense if the folders were project specific (using PROJECT_NAME). CMake will take care of that variable and normal add_subdirectory could be used...

Alexandre VINCENT <asmodehn>
Tue 04 Sep 2012 07:08:36 AM UTC, original submission:

We need a WkAddSubdirectory()

At the moment, when using Add subdirectory, if both project are using WkCMake, the top project WkCMake parameters ( directories, etc.) are erased by the dependent WkCMake parameters.

We need a WkAddSubdirectory which will maintain a stack of wkcmake setup in memory, and can support either normal cmake project, or WkCMake projects.

This seems the best way to be able to include WKCMake project into another one ( and have multiple project in one solution in VS - more convenient for VS devs )

Alexandre VINCENT <asmodehn>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by asmodehn (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 10 Sep 2012 02:34:00 PM UTCasmodehnPercent Complete40%=>80%
    Sun 09 Sep 2012 06:29:49 AM UTCasmodehnPercent Complete0%=>40%
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup