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 Sep 4 07:08:36 2012  
Should Start On: Mon Sep 3 15:00:00 2012Should be Finished on: Mon Sep 3 15:00:00 2012
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Percent Complete: 80%Assigned to: None
Open/Closed: OpenEffort: 0.00

Mon Sep 10 14:34:00 2012, 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 Sep 9 06:29:49 2012, 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 Sep 8 02:01:49 2012, 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 Sep 4 07:08:36 2012, 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 Sep 10 14:34:00 2012asmodehnPercent Complete40%=>80%
    Sun Sep 9 06:29:49 2012asmodehnPercent Complete0%=>40%
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup