Results 1 to 2 of 2

Thread: Using CMake...

  1. #1
    Join Date
    Jul 2011
    Location
    Cwmbran, South Wales, UK
    Beans
    193
    Distro
    Ubuntu 15.10 Wily Werewolf

    Using CMake...

    Hi guys,

    I haven't got a clue with what to do with CMake.

    Could anyone help by making an easy to adapt "template"?

    I have the following workspace structure at the moment:

    Code:
    ceros /
             bin/
             docs/
             include/
             iso/
             src/
                  arch/
                         boot/ 
                                boot.s # using nasm syntax
                         init/
                              main.c
                         obj/
                         utils/
                                ld/
                                   linker.ld
    I'd like to have a CMakeList.txt where it only looks in:
    1. src/arch/boot/
    2. src/arch/init/
    3. src/obj/
    4. src/utils/ld/
    5. bin/
    6. include/

    Of those directories,
    I need 1 & 2 to be compiled.
    3 is where I'd like the object files to be stored,
    4 has the linker script I want to use to link everything together
    5 is where I'd like the final binary ( named "kernel" )
    6 is where I'll be storing the header files of my kernel.

    If you could put comments telling me what is being done and if possible how I could add more directories/languages to the file(s) that would be amazing!

    Thanks in advance.

    Jamie.
    Main rig setup:
    Mobo - MSI 790 Mainboard | CPU - AMD FX43000 Black Edition x4 | GPU - eVGA GeForce 550Ti | RAM - 8GiB G.Skill Sniper Series DDR3 | Other - Corsair H60 Water Cooler | Dual Monitor Setup | Kingston HyperX 240GB SSD | Windows 10

  2. #2
    Join Date
    Jul 2011
    Location
    Cwmbran, South Wales, UK
    Beans
    193
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: Using CMake...

    bump
    Main rig setup:
    Mobo - MSI 790 Mainboard | CPU - AMD FX43000 Black Edition x4 | GPU - eVGA GeForce 550Ti | RAM - 8GiB G.Skill Sniper Series DDR3 | Other - Corsair H60 Water Cooler | Dual Monitor Setup | Kingston HyperX 240GB SSD | Windows 10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •