why the clion did not have entry cmake project from source - clion

why the CLion CLion 2021.3.4 did not have the entry of New CMake project from source?
how to import the CMake projects from CLion?

Related

boost 1.74+ jni ndk compilation cmake project

I would like to compile boost for Android JNI CMake project.
I tried with this repo
https://github.com/moritz-wundke/Boost-for-Android
but fail build for boost v1.78 with ndk23..
Is there any tutorial or prebuilt how to do it on CMakeLists.txt project.
Thanks for help
I am using https://github.com/Orphis/boost-cmake in my CMake Android NDK projects and it works fine, you can look at this project https://github.com/nkh-lab/ndk-vsomeip-hello-world as a reference. The only extra thing you need to do is add FindBoost.cmake to serve find_package( Boost ) if you use it in your cmake files.

CMake microsoft visual studio + gcc

I'm using cmake to build the project.
There is a CMakeLists where is used to build the project.
So, when I create a build folder, and use
cmake ..
the project solution is created, but with MVSC c++ compiler.
Is it possible to generate a solution with GCC compiler but in a Visual studio solution?

Build Release version of abseil-cpp static binary libs under Windows

I am using abseil-cpp in my C++ project built under Visual Studio 2019 / Windows 10.
Using CMake (not Visual Studio built-in makefile support) and following the static binaries instructions I have built a set of libraries and header files which I can then successfully link into a standard Visual Studio solution.
The issue I have is that the library builds with a build type of Debug, which means that I cannot link them into a Release build of my application.
What I need is to build a Release version of the abseil-cpp libraries. However the for the life of me I cannot figure out how to coax CMake / Abseil build process to do this!
I have tried the following, all of which are either ignored or error:
Add set(CMAKE_BUILD_TYPE Release) to the CMakeLists.txt file in the root of the abseil-cpp source tree
Add -DCMAKE_BUILD_TYPE=Release to the cmake .. -DCMAKE_INSTALL_PREFIX=~/Source/CMakeProject/install step given in the instructions
Add -DCMAKE_BUILD_TYPE=Release to the cmake --build . --target install step given in the instructions
Can anyone suggest what I need to do to build a Release version of static binary libraries?
Ian

How to generate .lib files with mingw toolchain?

I have installed MingW GCC 4.8.1 in my system. I am trying to build the LLVM source code( with some extra modification). Cmake 2.8.12 is used to generate the makefiles and visual studio solution files. I am able to build the LLVM source (Rel 3.4.2) with Visual Studio 2010 And is generating both lib and dll file. But with MingW I am not able generate .lib files by simply running Make all.
How to make MingW generate .lib file while building the project ?
Use CMAKE_GNUtoMS. Add -DCMAKE_GNUtoMS=ON to the build command. See this CMake issue. As result, a .lib file will be generated along with the .dll.a file.

Where to get PCL boost libraries with -mgw48 postfix?

I'm working with MinGW not Visual Studio to compile openCV libraries to use them in a Qt .pro project.
My problem is my library files in boost folder are all -vc100 while CMake is trying to find -mgw48 files.
My libraries are in this directory:
C:\Program Files\PCL 1.6.0\3rdParty\Boost\lib
and their name are like : boost_date_time-vc100-mt-1_49.lib
but I want them to be like : boost_date_time-mgw48-mt-1_49.lib
so that CMake could recognize them.
Where can I download PCL with -mgw48 libraries?

Resources