Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HOWTO: Linux + CMake + CodeBlocks + GNU Make #2

Open
district10 opened this issue May 11, 2016 · 0 comments
Open

HOWTO: Linux + CMake + CodeBlocks + GNU Make #2

district10 opened this issue May 11, 2016 · 0 comments

Comments

@district10
Copy link
Owner

district10 commented May 11, 2016

1. Build CodeBlocks Project

# goto source dir
cd module
mkdir build && cd build
cmake -G"CodeBlocks - Unix Makefiles" ..

generated codeblocks project

tip:

you can run cmake to get all your possible generators:

Generators

The following generators are available on this platform:
  Unix Makefiles              = Generates standard UNIX makefiles.
  Ninja                       = Generates build.ninja files (experimental).
  CodeBlocks - Ninja          = Generates CodeBlocks project files.
  CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
  Eclipse CDT4 - Ninja        = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Unix Makefiles
                              = Generates Eclipse CDT 4.0 project files.
  KDevelop3                   = Generates KDevelop 3 project files.
  KDevelop3 - Unix Makefiles  = Generates KDevelop 3 project files.
  Sublime Text 2 - Ninja      = Generates Sublime Text 2 project files.
  Sublime Text 2 - Unix Makefiles
                              = Generates Sublime Text 2 project files.

It seems sublime is a great choice. I'll cover that section later.

Build Executable & Run in CodeBlocks

build & run in codeblocks

because the building process is based on Makefile, you can also run these qt examples,
like:

example qt-gui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant