GithubHelp home page GithubHelp logo

cmakegen's Introduction

CMAKEGEN

Building on Windows

First step is to install Visual Studio in order to get the MSVC compiler and Windows SDK which are required for the next steps

Next step is to download and install cmake

Next prepare the environment so that cmake can find all dependencies during setup We will need the following


INCLUDE=VS_INSTALL_PATH\VC\Tools\MSVC\14.29.30133\include;WINDOWS_SDK_PATH\10\Include\10.0.19041.0\ucrt;WINDOWS_SDK_PATH\10\Include\10.0.19041.0\um

LIB=VS_INSTALL_PATH\VC\Tools\MSVC\14.29.30133\lib\x64;WINDOWS_SDK_PATH\Lib\10.0.19041.0\um\x64;WINDOWS_SDK_PATH\Lib\10.0.19041.0\ucrt\x64

CXX=VS_INSTALL_PATH\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe

Then add the following to the PATH

WINDOWS_SDK_PATH\bin\10.0.19041.0\x64

This will allow us to run rc.exe, the root directories for me was:

VS_INSTALL_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community

WINDOWS_SDK_PATH=C:\Program Files (x86)\Windows Kits\10

In order to use Ninja as build tool we can either use the one provided by VS or provide it ourselves, I downloaded it from the official Github and add it to the PATH.

Once all of this is done create the directory used for output:

# mkdir _build

and then start the build with:

# cd _build
# cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
# ninja

This should provide a cmakegen.exe that can be added to the PATH for convenience

cmakegen's People

Contributors

fredsson avatar

Stargazers

Suzanne Corporaal avatar

Watchers

 avatar

cmakegen's Issues

Description

A description would help others understand what type of project this is and what to expect from it.

Improve linking with stdc++fs

currently finding stdc++fs is hard coded in the CMakeLists, this will result in errors for anyone trying to build with library in a different location

No executable added when updating project

If the inital project is generated without any source files, and source files are added afterwards no add_executable or add_library is added when running with the -b switch

Readme

Would be much easier using the project if there was a readme

Missing header files

Cmakefile should contain all the header files as well, since they are needed for building on windows

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.