Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Use IR Project Template in an Existing Project

Merging IRProject with an existing project is slightly more complicated than creating a project from scratch, and involves some human-driven steps.

Assuming your existing project's name is MyProject. The procedure to use IRProject to enhance your existing project is as follows:

  1. Check out and build IRProject

    svn co file:///Projects/IR/SourceRepository/IRProject trunk IRProject
    mkdir irproject_build
    cd irproject_build
    cmake ../IRProject
    make
    cd ../

  2. Check out your project:

    svn co file:///Projects/IR/SourceRepository/MyProject

  3. Use the make_project command as if you were making a new project.

    irproject_build/bin/make_project IRProject MyProject

  4. Verify that none of your project-specific files have changed:

    cd MyProject
    svn status

  5. Cherry-pick or hand-merge CMake-related files. At this point the status should show you only the files that came from the Illinois Rocstar Project Template (IRProject) as being unknown (i.e. with status ?). The CMakeLists.txt.template file and your own will need to be hand-merged. This is not usually a major undertaking, and should be easily accomplished with some judicious cut-and-paste.
  6. Test the build

    mkdir ../myproject-build
    cd ../myproject-build
    cmake <ANY OPTIONS YOU USUALLY USE> ../MyProject
    make
    make test

The "make test" command should at least run the example tests that came with IRProject, but should also run your own tests if you had any set up before importing IRProject.

Next, you should clean up and add the new files to your project

cd ../MyProject
svn add *
svn commit -m "Imported IRProject"