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.
About a week ago, I finally started to renew my sites, which I had been…
Apache 2.4.37 from Apache Lounge supported TLSv1.3, so I enabled TLSv1.3 on my Web server…
I made it without understanding, but I think I got some good results, so I'll…
I updated phpMyAdmin from 4.7.9 to 4.8.0 the day before yesterday. Although they wrote that…
On Apr. 5 in Japan time, the director of 'Hotaru no haka' Takahata Isao (高畑勲)…
This website uses cookies.