Git Product home page Git Product logo

cmake's Introduction

About the poject

The examples show how to develope C++ project with CMake,Eclipse and QtCreator on Linux.

Demo A

All the files are in one directory. "CMakeLists.txt" and "domeA.pro" is involved.

Demo B

Two subdirectories are introduced, but "CMakeLists.txt" and "demoB.pro" exists.

Demo C

Each subdirectory owns one "CMakeLists.txt". The files contained in folder "core" are for library building. And the current directory also owns "demoC.pro".

Demo D

The project structure is similar to Demo C, but the demo bin is generated to the specified folder. At the same time,"demoD.pro" is involved in the current directory.

Demo E

Two separated modules are built as two shared libraries. Furthermore,"demoE.pro" exists in the current directory. The project file "hello.pro" of QtCreator is placed in the folder "hello" of the subfolder "core". And the project file "sqrt.pro" of QtCreator is placed in the folder "sqrt" of the subfolder "core".

Demo F

All the core modules are made as one library. At the same time, the current directory also owns "demoF.pro".

Demo G

The demo links the shared library pre-built by demo F. Besides,in the current directory "demoG.pro" also exist.

Demo H

A cmake macro is used to range over all the subdirectories in "core". This demo presents the usage of cmake macro. Moreover,"demoH.pro" is placed in current directory.

Demo I

It shows how to test the user lib module with Boost. NOTE: the Boost package should be installed before making the demo otherwise error will occur. While the method of calling a third part package is presented as well.

For more information, please contact [email protected]

cmake's People

Contributors

wyue2015 avatar sunzuolei avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.