cmakelist.txt shell svnversion

  • CMake : how to use bash command in CMakeLists.txt 2009-03-18

    I'm wondering how I can use bash command in CMakeLists.txt. What I want is to get the number of processor retrieved using : export variable=`getconf _NPROCESSORS_ONLN` and set NB_PROCESSOR to variable using something like : SET (NB_PROCESSOR variable

    Tags: bash, cmake
  • Makefile to CMakeLists.txt 2010-04-22

    I have some problems converting the attached Makefile to an equivalent CMakeLists.txt . The build process goes like that : Generate src/lexer.cpp given src/lexer.l.cpp with flex. Generate src/parser.cpp given src/parser.y.cpp with bison. Compile almo

    Tags: makefile, cmake
  • Working with CMake and Xcode: keep project changes when CMakeLists.txt is modified 2010-07-16

    First of all, I've never developed with Xcode. I have a project that has been developed by me under a certain environment (Linux and emacs) and now some colleagues that use a different environment will work with me. This is a C++ project that uses CM

    Tags: xcode, cmake
  • kdevelop: editing CMakeLists.txt 2010-07-20

    I am having troubles trying to make my project work with kdevelop. In the CMakeLists.txt I have included the paths to the libraries that I use: cmake_minimum_required(VERSION 2.4.6) PROJECT(Ormapi) INCLUDE_DIRECTORIES("/dir/whatever/local/dir/include

    Tags: c#, cmake
  • Compile other external libraries (without CMakeLists.txt) with CMake 2010-08-15

    short -- Is it possible to build a external binary/library out of a project with CMake, when the binary/library only has a makefile given? So you have your own project, a bunch of CMakeLists.txt in your src-tree and this external library with its sou

    Tags: c#, make, makefile, cmake
  • Overriding a default option(-) value in CMake from a parent CMakeLists.txt 2010-09-22

    I am trying to include several third-party libraries in my source tree with minimal changes to their build system for ease of upgrading. They all use CMake, as do I, so in my own CMakeLists.txt I can use add_subdirectory(extern/foo) for libfoo. But t

    Tags: c#, build process, build, cmake
  • Prevent pushes to git containing tabs in certain files (e.g. *.cpp, *.h, CMakeLists.txt) 2010-10-21

    I'd like my remote repository to refuse any pushes that contains a file that contains a tab, but only if the file belongs in a certain class (based on the filename). Is that possible? I have looked a bit at the update hook in githooks, and I think th

    Tags: git, githooks
  • change compiler in CMAKE sub_directory CMakeLists.txt file 2011-02-01

    i would like to change CMAKE_C_COMPILER and CMAKE_CXX_COMPIERL in an inner sub_directory being compiled as part of a bigger project. changing from GNU to intel compiler. however, outside of this directory nothing has to chagne. is that possible? Than

    Tags: cmake
  • Can anyone point me at a CMakeLists.txt example for a "GNU-style" project 2011-05-27

    Unfortunately, my Google search only turns up CMake - Wiki - GNU_style_example which has a broken link to the example code. I would like to use this format/structure for my project, but I'd like to see how the CMakeLists.txt files need to be set up t

    Tags: gnu, cmake, project
  • Not sure how to add opencv library to CMakeLists.txt 2011-07-07

    I hope someone can help me. I have a simple CMakeLists.txt in order to build my project on Ubuntu. I'm using CMake 2.8.1 and at the moment this is the code: cmake_minimum_required(VERSION 2.4.6) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} /home/user/w

    Tags: cmake, ros
  • Should I separate CMakeList.txt from source folder? 2011-07-07

    I'm new to build tool, when I come across Autotool, I have an option to write only one in the top build folder and leave the source folder containing all cpp files clean. I could use VPATH to tell automake to look for the source code insi

    Tags: build, cmake
  • How to generate CMakeLists.txt? 2011-08-02

    I need some pointers/advice on how to automatically generate CMakeLists.txt files for CMake. Does anyone know of any existing generators? I've checked the ones listed in the CMake Wiki but unfortunately they are not suitable for me. I already have a

    Tags: cmake
  • Populating ${SRCS} from CMakeLists.txt in subdirectories 2011-08-12

    I currently define a ${SRCS} variable in the CMakeLists.txt file in my projects root directory, listing every source file required for my executable: SET (SRCS main.cpp dir1/file1.cpp dir1/file2.cpp dir2/file3.cpp dir2/file4.cpp) How can I distribute

    Tags: cmake
  • CMakeLists.txt and Qt's *.pri file 2011-08-25

    I'm trying to create CMakeLists.txt file for KDE4/Qt4 project. In this project currently there is included one *.pri file which creates independent library. I would like to include that library into my CMakeLists.txt. I don't have any idea how to do

    Tags: cmake
  • C++ IDE that autogenerates cmakelists.txt 2011-09-06

    I'm looking for an IDE that automatically generates a cmake file from the project. Ideally I would like the project to be independent of the IDE. I am mainly working under linux but Windows is a major (and great) OS so ideally it would run on Windows

    Tags: ide, make, makefile, cmake
  • Where to put CMakeLists.txt? 2011-10-02

    We would like to develop few dynamically linked libraries in C, each for both Linux and Windows. We would like to use cmake. Please, how to organize directories and where to put those CMakeLists.txt (or should we have just one?) --------------Solutio

    Tags: build, autotools, cmake
  • CMake: how to create a CMakeLists.txt that runs ./configure once? 2011-10-17

    How do I create a CMakeLists.txt for gmock to configure only once? I tried: ADD_CUSTOM_TARGET( gmock DEPENDS ${CMAKE_CURRENT_LIST_DIR}/gmock-1.6.0/lib/.libs/libgmock.a COMMAND cd ${CMAKE_CURRENT_LIST_DIR}/gmock-1.6.0 && ./configure &&

    Tags: cmake, googletest
  • Sample CMakeLists.txt file for LLVM project 2011-11-27

    I am having a hard time to get LLVM to work on a new project. I've tried multiple CMakeLists.txt examples from and used a lot of time on it. I can build LLVM and the examples perfectly but I

    Tags: cmake, llvm
  • How do I add the RequestExecutionLevel option of NSIS to a CMakeLists.txt 2011-12-15

    I am trying to get an installer compiled with NSIS on Windows 7 to work without administrator privileges. The project is set up with CMake and compiled with VC2010. I have figured out that I have to use the RequestExecutionLevel user option. My quest

    Tags: nsis, windows 7, cmake, cpack
  • CMakeLists.txt files for multiple libraries and executables 2012-03-12

    I am just starting playing with CMake. I have something like: /DEV |-- lib1 | CMakeLists.txt |-- lib2 | CMakeLists.txt |-- exe1 | CMakeLists.txt /BUILD |-- lib1 |-- lib2 |-- exe1 /INSTALL |-- include |-- lib |-- bin I would like to: Build each lib an

    Tags: cross platform, cmake, cross compiling

Copyright (C), All Rights Reserved.

processed in 0.513 (s). 7 q(s)