Giter Club home page Giter Club logo

Comments (5)

bjornblissing avatar bjornblissing commented on July 28, 2024

@ensisoft
There is some very sparse documentation in the readme file. But in principle do it like this:

  1. Download the scripts CMake scripts from this repository.
  2. Download the source for the dependencies you would like to use from the locations specified in the readme file.
  3. Start the CMake GUI and select the directory with the scripts as your source directory. Use any desired output directory as binary directory.
  4. Press Configure inside the CMake GUI.
  5. Fill in the location of the downloaded sources of your desired dependencies and press "Configure" again. Repeat until there is no more errors and warnings in CMake.
  6. Press Generate inside the CMake GUI. This will generate solution file inside your binary directory.
  7. Open the solution file in your IDE.
  8. Build the ALL_BUILD project for both debug and release.
  9. Build the INSTALL project for both debug and release.

In your binary directory there will now be a folder named 3rdParty with a sub-folder named after your target platform (i.e. v140-x86 for Visual Studio 2015 32-bit). Inside this folder there should be all your headers and libraries.

from osg-3rdparty-cmake.

ensisoft avatar ensisoft commented on July 28, 2024

Thanks for the quick reply,

is there an alternative way for those how'd prefer to script this on the command line?

from osg-3rdparty-cmake.

bjornblissing avatar bjornblissing commented on July 28, 2024

CMake can be run from the commandline, although each variable has to be set via the form:
-D <var>:<type>=<value>

For example:
-DZLIB_SOURCE_DIR:PATH=D:/zlib-1.2.8

So all variables you specified in the CMake GUI must be supplied this way.

Building the solution can then be achieved via MSBuild. This is something I never tried myself, but a command line reference to MSBuild can be found here:
https://msdn.microsoft.com/en-us/library/ms164311.aspx

from osg-3rdparty-cmake.

ensisoft avatar ensisoft commented on July 28, 2024

Oh, right they come through the -D flags.

Thanks again for quick replies!

from osg-3rdparty-cmake.

ensisoft avatar ensisoft commented on July 28, 2024

Thanks for the replies.

from osg-3rdparty-cmake.

Related Issues (20)

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.