Yesterday, I installed Visual Studio Community 2017 for learning Visual C++ with CMake. Why did I decide to learn Visual C++? Because I want to compile Apache Dev version for Microsoft Windows. The page says httpd can be built on Windows using a cmake-based build system. Besides, Visual C++ Team says they can support CMake in Visual Studio 2017 easily and CMake Team does CMake version 3.7 or higher are compatible with Visual Studio 2017. The time is very good. I decided to learn Visual C++ with CMake.
[About Visual Studio 2017]
First, download Visual Studio Community 2017 from the site. About installing, see Install Visual Studio 2017. At Step 4 – Select workloads, I checked all check boxes because I don’t know what I need exactly. VS 2017 system Requirements is here.
The installation takes several time though it depends on your environment. Be patient.
When you run Visual Studio Community 2017 for the first time, it suggests you sign in to Visual Studio and you need it because Unlocks the Visual Studio Community Edition instead of being limited to the trial period of 30 days.
[About CMake]
Second, download CMake from the site. Choose the file you need. In my case, cmake-x.x.x-win32-x86.msi. Click the msi file to install. At Install Options dialog, choose “Add CMake to the system PATH for all users” or “Add CMake to the system PATH for the current user”.
———————
Now I have VS 2017 and CMake on my PC.
Build HelloWorld.exe for checking I have proper installations or not. I do all in Visual Studio.
printf("Hello, World.n");
At the point, I can get HelloWorld.exe without CMake. But I need CMake. So, I add a CMakeLists.txt file to the directory that includes the HelloWorld.cpp file.
add_executable(HelloWorld HelloWorld.cpp)
My goal is still a long way off, though.
The recipe for sweet potato yōkan that I often made this fall. Ingredients Sweet potato…
After a long time, when I checked broken links and fixed them, I got an…
I made a box, so I prepare the contents. Theme and Plugins. The theme is…
Hehe, it's been almost a year since my last post. I received a notification email…
About a week ago, I finally started to renew my sites, which I had been…
This website uses cookies.