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

Document sample commands to generate project files using CMake on Windows #22

Open
faheel opened this issue Feb 2, 2018 · 4 comments · May be fixed by #38
Open

Document sample commands to generate project files using CMake on Windows #22

faheel opened this issue Feb 2, 2018 · 4 comments · May be fixed by #38
Labels
docs Documentation help wanted Extra attention is needed

Comments

@faheel
Copy link
Owner

faheel commented Feb 2, 2018

In the Development section in README, add sample command(s) for properly generating project files using CMake for some popular Windows IDE, such as Visual Studio.

@faheel faheel added help wanted Extra attention is needed docs Documentation labels Feb 2, 2018
@arnavb
Copy link
Contributor

arnavb commented Apr 18, 2018

@faheel Well for Visual Studio, I recommend that you do something similar to my Appveyor script in my C++ project template. The script I use is:

mkdir build && cd build
cmake -D<options> -G<VS Generator> ..
cmake --build . --config <configuration> # Default build
cmake --build . --target <target> --config <configuration> # Other targets, such as 
    # coverage or test. For testing, ctest is a better option.

In the script above, <options> are any options you pass to CMake (except CMAKE_BUILD_TYPE which doesn't work for multi-config generators anyways).

<VS Generator> is a visual studio generator such as those listed here.

<configuration> needs to be a valid CMake configuration (Debug, Release, DebWithRelInfo, MinSizeRel). If it is excluded, the default configuration is (usually) Debug.

<target> can be any build target. Eg for any target make <target>, you have to pass --target <target> to cmake --build.

I hope this helps and let me know what you think!

@faheel
Copy link
Owner Author

faheel commented Apr 18, 2018

@arnavb Thanks a lot for the detailed info! I'll try running these commands when I log on to Windows next time.

@faheel faheel pinned this issue Jan 2, 2019
@faheel faheel unpinned this issue Jan 2, 2019
@dnb02
Copy link

dnb02 commented Oct 1, 2023

Hello @faheel
I am new to opensource, I would like to help.
Please tell me what I can do.

@faheel faheel linked a pull request Nov 18, 2023 that will close this issue
@faheel
Copy link
Owner Author

faheel commented Nov 18, 2023

@dnb02 You can try out what arnavb suggested above, and also checkout #38. It would be great if you could include these in the existing GitHub action and see if it passes on Windows.

I'll try running these commands when I log on to Windows next time.

I still haven't logged in to a Windows machine after 5 years 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants