[CMake] Using CMake on CLion and adding geoip library

2016-06-24 Thread Hgfjj Hhjgf
I am trying to use an external library (GeoIP). CMake list contains: message(STATUS "Looking for MaxMind GeoIP header files") set(CMAKE_INCLUDE_PATH "${CMAKE_INCLUDE_PATH} ${GEOIP_INCLUDE_DIR}") check_include_file("GeoIP.h" HAVE_GEOIP_H) check_include_file("GeoIPCity.h" HAVE_GEOIPCITY_H) if (HAVE

Re: [CMake] CMake terminology

2016-06-24 Thread Ruslan Baratov via CMake
There is cmake **build** step: cmake --build _builds So in GUI it's: * cmake configure * cmake generate * IDE build (which you can do with cmake --build so it can be called "cmake build" step) in cmd: * cmake configure+generate * cmake build Also I can call it "cmake step" in docs about

Re: [CMake] CMake terminology

2016-06-24 Thread Craig Scott
In documentation, blog articles, etc. I just call it the "cmake" step (or sometimes the "project setup" step if talking in a more project-wide sense). For many users, the separate configure and generate steps are somewhat of an implementation detail, so it makes more sense to give it a single term.

Re: [CMake] CMake terminology

2016-06-24 Thread Ruslan Baratov via CMake
On 24-Jun-16 23:49, Robert Maynard wrote: Please run the configure and generate steps by It's too long :) Also it doesn't express the fact that it's a single action, consider: "To add variables on configure and generate steps use '-D'" "Before running configure and generate steps note that

[CMake] Qt 5.6.1 messes up Linux packaging using CPack?

2016-06-24 Thread Michael Jackson
I have a project that uses CMake. I had been compiling against Qt 5.6.0 for a while but due to issues with QWebEngine I installed Qt 5.6.1 instead and compiled against that. I can run my application from the build directory but when I go to use cpack to package my application I am getting the follo

Re: [CMake] CMake terminology

2016-06-24 Thread Robert Maynard
Please run the configure and generate steps by On Fri, Jun 24, 2016 at 4:40 PM, Ruslan Baratov wrote: > > On 24-Jun-16 23:25, Robert Maynard wrote: >> >> cmake from the command line is still running the two stages, it just >> doesn't allow for feedback/input from the user between the two stages.

Re: [CMake] CMake terminology

2016-06-24 Thread Ruslan Baratov via CMake
On 24-Jun-16 23:25, Robert Maynard wrote: cmake from the command line is still running the two stages, it just doesn't allow for feedback/input from the user between the two stages. Yes, I understand that. Question is about the name of the step. I.e. when I do write manual what should I choose

Re: [CMake] CMake terminology

2016-06-24 Thread Robert Maynard
cmake from the command line is still running the two stages, it just doesn't allow for feedback/input from the user between the two stages. On Fri, Jun 24, 2016 at 4:06 PM, Ruslan Baratov via CMake wrote: > Hi, > > I have a question about CMake terminology. When we are using CMake GUI there > are

[CMake] CMake terminology

2016-06-24 Thread Ruslan Baratov via CMake
Hi, I have a question about CMake terminology. When we are using CMake GUI there are two buttons "Configure" and "Generate", hence we have two stages: 1. Configure step, when we do configuring project, effectively creating file with cache variables (which we can modify) without really genera

Re: [CMake] gathering directory names in cmake

2016-06-24 Thread Cfyz
> I have a source tree which contains multiple directories each of > which has a subdirectory called "xyz". I want to create a target > that creates a zip file with each of the xyz directories. You can filter the file paths with a few CMake script lines: file(GLOB_RECURSE FILES "./*") foreach(FIL

[CMake] subversion

2016-06-24 Thread Andreas Naumann
Dear cmake users, I have a question if, and how, you use the Subversion module of cmake. The module provides the macro Subversion_WC_INFO, which extracts information of a working copy. I use this information, to generate a sub minor revision number of my project. If I checkout my project using

[CMake] Configuring CxxTest

2016-06-24 Thread portolan
Hello, I setup my first cmake projet, but I have some problems with generating my CxxTest suite. I can easily call up the CxxTest packgage and specify the generator using "CXXTEST_PYTHON_TESTGEN_EXECUTABLE" following the instruction of the documentation (https://cmake.org/cmake/help/v3.0/modul