In CPack I can add a component with cpack_add_component and describe
the component with the additional arguments of the macro.
I can also describe the component if I use the varibales of type
CPACK_COMPONENT__XXX (e.g.
CPACK_COMPONENT__HIDDEN).
So which one is the right way? Or doesn't matter
With the NSIS generator I can create a dialog with a drop_down list
with two elements default and developer. Default is selected by default
when the dialog starts, so the default parts of the package are
installed. Selecting developer the devlop parts are installed and the
default files not.
How
Am Mittwoch, den 27.01.2016, 10:27 -0500 schrieb Bill Hoffman:
> On 1/26/2016 12:51 PM, Bill Hoffman wrote:
> >
> > I am running the community edition... Maybe there is some
> > difference
> > with express?
> One other question, did you build 64 or 32 bit?
64-bit.
Michael
--
Powered by
Hallo,
CMAKE_PUSH_CHECK_STATE() CMAKE_POP_CHECK_STATE() affect
CMAKE_REQUIRED_FLAGS, CMAKE_REQUIRED_DEFINITIONS,
CMAKE_REQUIRED_LIBRARIES and CMAKE_REQUIRED_INCLUDES.
Maybe one can extend CMAKE_PUSH_CHECK_STATE() CMAKE_POP_CHECK_STATE() to
controll CMAKE_EXTRA_INCLUDE_FILES also.
Michael
Hi,
does FIND_LIBRARY_USE_LIB64_PATHS work with Windows64.
From this ...
https://public.kitware.com/Bug/view.php?id=15301#c37449
...one might conclude it does, but on my Win64-System
PROJECT(T LANGUAGES C)
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
GET_PROPERTY(r22 GLOBAL PROPERTY
Hallo,
I want to find the library MSImg32 on a Windos 8.1 system 64-bit.
The library is located here:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64
\MSImg32.Lib
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\MSImg32.Lib
C:\Program Files (x86)\Windows
Hi,
I try to understand the concept of generator expressions with little
avail.
For the current project I thought, I could use them in combination with
TARGET_INCLUDE_DIRECTORIES.
Instead of writting
IF(t1)
TARGET_INCLUDE_DIRECTORIES(cTest PRIVATE path/to/h1 PRIVATE path/to/h2)
ELSE(t1)
Hello,
In the manual the install(FILES...) command is described as this:
install(FILES|PROGRAMS files... DESTINATION dir
[PERMISSIONS permissions...]
[CONFIGURATIONS [Debug|Release|...]]
[COMPONENT component]
[RENAME name] [OPTIONAL])
So what is the meaning of
Hi all,
is there a way that CMake create solution files for 64-bit targets?
(Visual Studio 2012 Express)
Greetings
Michael
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to
Am Dienstag, den 09.12.2014, 01:52 -0800 schrieb Alan W. Irwin:
Hi Nils:
I have never understood CMP0054 until now when I read your above
clear explanation. So thanks very much for that!
Same from me. Excellent work. It makes things clearer.
Greetings
Michael
--
Powered by
Hi,
what does this message mean?
The ASM_MASM compiler identification is MSVC
CMake Warning (dev) at C:/Program
Files/CMake/share/cmake-3.1/Modules/CMakeFindBinUtils.cmake:33 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables
or
keywords when unquoted. Run cmake
Hallo,
does CMake run on 64-bit OS (e.g. Ubuntu 14.10 64-bit) without problems
or are there some workarounds necessary to get it run? If so, is there a
description available?
Greetings
Michael
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
Hi,
FIND_PACKAGE(TLib)
GET_TARGET_PROPERTY(Result MiG::TLib LOCATION)
results in
/usr/local/lib/libTLib.so.3.4.1
I would expect /usr/local/lib/libTLib.so
Is this a bug or a feature?
Micha
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
Hallo,
The Documentation says: Automatically add the current source- and build
directories to the INTERFACE_INCLUDE_DIRECTORIES.
How can I get this information?
SET(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
ADD_LIBRARY(TLib1 SHARED tlib1.c tlib1.h)
Hallo,
is it possible to index CMake strings.
In C it would something like this:
char c = Str[3];
Micha
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake
I would try
add_custom_target( ${doc_target_name}
DEPENDS ${generated_conf}
COMMAND ${doxygen_exe} ${generated_conf} 2 filename
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT Generating documentation using Doxygen
)
.
INCLUDE_DIRECTORIES(general_include_directories)
# Projet A
...
SET_TARGET_PROPERTIES(ProA PROPERTIES
INCLUDE_DIRECTORIES ${ProjAIncludeDirs})
...
# Projet B
...
SET_TARGET_PROPERTIES(ProB PROPERTIES
INCLUDE_DIRECTORIES ${ProjBIncludeDirs})
...
Grettings
Micha Renner
--
Powered
Is the intention of CMAKE_[C|CXX]_COMPILER_VERSION to check the [C|C
++]-compiler version platform independent?
Greetings
Micha
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and
For static libraries the macro GENERATE_EXPORT_HEADER produce an output
like this one:
...
#else
# ifndef CTEST_EXPORT
#ifdef cTest_EXPORTS
/* We are building this library */
# define CTEST_EXPORT
#else
/* We are using this library */
# define CTEST_EXPORT
#
The following links of www.cmake.org/Wiki/CMake generate 404 Errors
How CMake simplifies the build process by Bruno Abinader
Part 1 - Basic build system :
http://www.abinader.com.br/bruno/how-cmake-simplifies-the-build-process-part-1-basic-build-system/
Howto use cmake with C/C++ projects:
Am Mittwoch, den 13.06.2012, 14:51 +0200 schrieb Robert Carnecky:
Hello,
My Visual Studio 2010 is constantly prompting me to build ZERO_CHECK
every time I try to run my program, even though nothing has changed. Is
there a workaround for this?
No, that is the current situation. This
I guess, this is one of the rare cases where one need:
SET_SOURCE_FILES_PROPERTIES(Foo.cpp PROPERTIES GENERATED TRUE)
Greetings
Micha
Am Mittwoch, den 11.04.2012, 11:18 -0500 schrieb William R. Otte:
Hi -
I have a question about resolving dependencies when add_custom is used to
May be, there is an error when the compiler process the header file.
During CHECK_INCLUDE_FILES CMake invokes the Compiler to check whether
the header file works fines. In most cases reason is a missing
additional header files (but not always).
So, check the log files of CMake in the binary
Am Dienstag, den 18.10.2011, 13:47 +0400 schrieb Vladimir Chebotarev:
Hi, Micha.
When is it going to get fixed?
I dont't know.
Can I help with it?
I would appreciate it, but I'm not a maintainer.
#12465 of the bugtracker had been closed now.
Please look here
Am Montag, den 17.10.2011, 21:42 +0400 schrieb Vladimir Chebotarev:
Hi.
I'm trying to compile .cpp file along with .asm on Visual Studio.
It correctly finds NASM assembler, but .asm file seems not to be included to
build.
Have tried VS 2005 and 2010, cmake 2.8.6 and 2.8.6-20111015.
It
Am Donnerstag, den 29.09.2011, 09:22 +0200 schrieb Hendrik Sattler:
Zitat von Michael Wild them...@gmail.com:
Just a few of my thoughts on this:
Same for me.
- There are several ways to handle dead symlinks:
1. Don't check, let the linker complain (status quo)
2. Check whether
Am Donnerstag, den 29.09.2011, 10:32 +0200 schrieb Hendrik Sattler:
Zitat von Micha Renner micha.ren...@t-online.de:
Am Donnerstag, den 29.09.2011, 09:22 +0200 schrieb Hendrik Sattler:
Zitat von Michael Wild them...@gmail.com:
Just a few of my thoughts on this:
Same for me
Am Montag, den 15.08.2011, 22:43 +0200 schrieb klaas.holwerda:
Hi,
I have several nested directories, and each directory contains a
CMakeLists.txt file.
And most start with PROJECT( ) Where xxx is some name for what I like to
contains some targets.
In VC it is possible to create
This script...
# Copy paste from CMake Wiki
# Works only if CMake runs in the Visual Studio DOS Window
SET(MASMFound FALSE)
# test whether it is a x86 machine and masm is available
IF(${CMAKE_SYSTEM_PROCESSOR} MATCHES x86)
ENABLE_LANGUAGE(ASM_MASM)
Hi,
in http://www.cmake.org/pipermail/cmake/2009-November/033346.html
I found the line: If the file (.S) needs to be preprocessed, set the
LANGUAGE source file property to C, this should work in most cases for
now.
Is this still the way to process .S-files. In 2009 it sounded so
temporary.
And
Am Donnerstag, den 04.08.2011, 10:05 +0200 schrieb Thomas Sondergaard:
It is a bit of a pain to work with Visual Studio 2010 and CMake due to
this bug: http://gccxml.org/Bug/view.php?id=11258 (VS 2010 CMake plugin
is broken). It doesn't look like much progress is being made with fixing
this
Am Montag, den 25.07.2011, 15:49 +0200 schrieb Michael Wild:
On 07/25/2011 03:24 PM, Micha Renner wrote:
There is following sequence:
ADD_EXECUTEABLE(generator gen.c)
ADD_CUSTOM_COMMAND(OUTPUT tlib.h
COMMAND generator tlib.h)
ADD_LIBRARY(tlib tlib.c tlib.h
In a CMakeLists file, there is this command:
INSTALL(SCRIPT tInstall.txt)
During processing tInstall.txt none of global variables (e.g. MSVC,
CMAKE_SHARED_LIBRARY_SUFFIX ...) has a value.
Is this a bug or a feature?
Greetings
Micha
___
Powered by
This is a really good idea, thank you.
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/tInstall.txt.in
${CMAKE_CURRENT_BINARY_DIR}/tInstall.txt)
install(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/tInstall.txt)
Micha
___
Powered by www.kitware.com
There is following sequence:
ADD_EXECUTEABLE(generator gen.c)
ADD_CUSTOM_COMMAND(OUTPUT tlib.h
COMMAND generator tlib.h)
ADD_LIBRARY(tlib tlib.c tlib.h)
The question: Is it sure that ADD_EXECUTEABLE is invoked before the
library is build or is here an ADD_DEPENDENCIES(tlib generator)
Am Donnerstag, den 12.05.2011, 11:15 +0300 schrieb tiantik:
Hi CMake's members,
My project has two parts: shared library and executable. The soversion
of shared library is libxxx.so.1.2.3. Now, the cmakelist.txt of
executable will check this soversion of shared library as . How do I
do this
Am Donnerstag, den 12.05.2011, 17:10 +0200 schrieb Michael Wild:
I agree, that this behaviour is due the fact that the parameter name
var hides the parent-scope variable var, but then ${${var}} should
IMHO result in an error or warning message. Essentially, what this does
inside the function
This is funny:
FUNCTION(build var)
MESSAGE(STATUS var: ${${var}})
ENDFUNCTION(build)
SET(var red blue yellow green)
build(var)
Output:
-- var: var
SET(varX red blue yellow green)
build(varX)
Output:
-- var: redblueyellowgreen
Greetings
Micha
Are there any plans to support gobject-introspection?
Micha
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
Am Montag, den 04.04.2011, 21:22 +0200 schrieb Dominik Szczerba:
CMAKE_CFG_INTDIR
This value is evaluated by the native build system - this variable is
suitable only for use in command lines that will be evaluated at build
time (after the cmake run).
Please see:
Hello,
IF(bgdgbBromNN MATCHES Brom)
is true,
but
IF(Brom MATCHES bgdgbBromNN)
is false.
Should be same, or?
Greetings
Micha
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
Am Sonntag, den 27.02.2011, 21:38 + schrieb Pere Mato Vila:
Hi,
For the Windows platform I am generating the .DEF files with all defined
symbols to be exported. For this I need to get the list of all object files
(.obj) participating into a library. The question is whether this
ADD_DEFINITION sets the definitions for a compiler without target
binding. This means once it is used all subsequent targets and
subdirectories have these definitions
ADD_DEFINITIONS(-DHAVE_CONFIG_H -DEXCLUDE ALL_PINGUINS)
COMPILE_DEFINITIONS is a property which is used frequently with
There is a library, which is described with these TLIBConfig.cmake,
TLIBConfigVersion.cmake files (The version of the library is 2.1).
The library is used by
FIND_PACKAGE(TLIB 2.30 QUIET)
Is there a way to check the version of the library after FIND_PACKAGE?
E.g., if TLIB_VERSION would have a
Am Donnerstag, den 10.02.2011, 15:12 +0100 schrieb Michael Hertling:
AFAICS from the documentation in [1], FIND_PACKAGE() is not obliged to
set TLIB_VERSION et al. if no acceptable TLIBConfig[Version].cmake has
been found, and that's quite reasonable: Suppose you've multiple TLIB
In FindGTK2.cmake there are some examples how to use this module
find_package(GTK2 2.6 REQUIRED gtk)
generates:
CMake Warning (dev) at CMakeLists.txt:75 (find_package):
Policy CMP0011 is not set: Included scripts do automatic cmake_policy
PUSH
and POP. Run cmake --help-policy CMP0011 for
Am Mittwoch, den 02.02.2011, 12:00 +0100 schrieb Emmanuel Blot:
Hello,
How to disable the new warnings CMake 2.8.4-rc2 emits, such as the
following ones?
I support this question too.
There should be a way to switch off this feature of CMake, especially
when variables are used uninitialized.
Am Mittwoch, den 02.02.2011, 09:49 -0500 schrieb Brad King:
On 2/2/2011 9:21 AM, Michael Jackson wrote:
On Feb 2, 2011, at 9:08 AM, Brad King wrote:
cmake --help:
--warn-uninitialized= Warn about uninitialized values.
--warn-unused-vars = Warn about unused
Recently, I learned that ADD_CUSTOM_COMMAND generated the property
GENERATED TRUE for the generated file.
Somehow I have trouble in this situation:
In a top level CMakeLists file a source file, blue.c, is generated. This
file should be used in a subdirectory with its own CMakeLists file.
Am Dienstag, den 25.01.2011, 15:34 +0100 schrieb Michael Hertling:
On 01/25/2011 10:17 AM, Micha Renner wrote:
Recently, I learned that ADD_CUSTOM_COMMAND generated the property
GENERATED TRUE for the generated file.
Somehow I have trouble in this situation:
In a top level
Am Donnerstag, den 20.01.2011, 15:36 -0500 schrieb Brad King:
On 01/20/2011 01:36 PM, Alexander Neundorf wrote:
On Thursday 20 January 2011, Brad King wrote:
This all has been documented on the Wiki for years:
http://www.cmake.org/Wiki/CMake_2.6_Notes
It is more of a
They have a question:
https://connect.microsoft.com/VisualStudio/feedback/details/634469/vs-2010-yields-blocking-error-dialog-when-a-macro-tries-to-stop-the-build-vs-2008-did-not
Maybe you can answer.
Greetings
Micha
___
Powered by www.kitware.com
Am Mittwoch, den 29.12.2010, 20:03 +0100 schrieb Julia Jacobson:
Thanks for your answer. The file FindFLTK.cmake exists within my CMake
installation, but I still get an error message:
CMake Error at C:/Program Files/CMake
2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91
Am Donnerstag, den 30.12.2010, 11:01 +0100 schrieb Julia Jacobson:
What grieves me is that the CMake code I had prepared in linux looked
really nice (without any absolute paths and so on), but the file for
Windows doesn't.
I think, the problem with FindFLTK is, that it has never been tested
Am Mittwoch, den 29.12.2010, 12:13 +0100 schrieb Julia Jacobson:
Hello everybody out there using CMake,
A project I would like to build with CMake uses FLTK.
The CMakeLists.txt file references to FLTK:
...
SET(FLTK_INCLUDE_DIR C:/Programs/fltk)
FIND_PACKAGE(FLTK REQUIRED)
...
However,
Hello,
I always thought that CMAKE_SHARED_LIBRARY_PREFIX should have the value
lib (Linux). On my system it is blank. Is there a specific reason for
that?
Greetings
Micha
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
Am Dienstag, den 28.12.2010, 07:46 -0500 schrieb David Cole:
What's the context of your question?
When processing a CMakeLists file, on Linux, the typical value is
lib.
Aha.
The following small script...
PROJECT(T)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3)
MESSAGE(STATUS
Am Dienstag, den 28.12.2010, 08:51 -0500 schrieb David Cole:
CMAKE_SHARED_LIBRARY_PREFIX only has one F
Shame on me.
Nevertheless, thank you.
Greetings
Micha
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
Just a small piece of feedback. All the other Visual Studio generators are
in order, ie, VS 6, VS 7, VS 8, VS 9 so it made sense to look for VS 10
below VS 9. Was there a specific reason for putting VS 10 above VS 6 and thus
out of order?
The only reason I can think is that VS 10 starts
Am Mittwoch, den 08.12.2010, 14:55 +0100 schrieb Vivien Delmon:
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
ADD_CUSTOM_COMMAND(OUTPUT toto.h toto.c
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/create_totoc_totoh.sh
)
SET_SOURCE_FILES_PROPERTIES(toto.h toto.c PROPERTIES GENERATETED TRUE)
See:
Andreas, Michael - thanks, you helped me lot.
Greetings
Micha
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
Am Freitag, den 03.12.2010, 08:45 +0100 schrieb Andreas Pakulat:
On 03.12.10 07:11:23, Micha Renner wrote:
There is a small library TLib which is installed like this
Install the project...
-- Install configuration: Debug
-- Installing: /usr/local/lib/libTLibd.so
-- Installing: /usr
Meanwhile, with 2.8.3 to be exact, the warning message issued by CMake
if a version file is found but the requested version doesn't suit is:
Could not find a configuration file for package ... that is compatible
with requested version
The following configuration files were
There is a small library TLib which is installed like this
Install the project...
-- Install configuration: Debug
-- Installing: /usr/local/lib/libTLibd.so
-- Installing: /usr/local/lib/TLib/TLibExport.cmake
-- Installing: /usr/local/lib/TLib/TLibExport-debug.cmake
-- Installing:
Am Dienstag, den 23.11.2010, 14:01 +0100 schrieb tomas...@sbc.su.se:
Dear Cmake users,
1) I am trying to set CMAKE_INSTALL_PREFIX in the CMakeLists file with
SET(CMAKE_INSTALL_PREFIX, my/path)
^
No comma!
greetings
Micha
Am Dienstag, den 23.11.2010, 15:01 +0100 schrieb Michael Wild:
On 11/23/2010 02:33 PM, Micha Renner wrote:
Am Dienstag, den 23.11.2010, 14:01 +0100 schrieb tomas...@sbc.su.se:
Dear Cmake users,
1) I am trying to set CMAKE_INSTALL_PREFIX in the CMakeLists file with
SET
Am Mittwoch, den 17.11.2010, 15:07 +0530 schrieb Hariharan:
Is it possible to run the compiler and linker through another command,
say time or a custom script? In other words, I want the compile and
link steps to run command gcc and command ld.
In this case you have to work with a combination
Unpacking cmake-2.8.3.tar.gz, cmake-2.8.3-Linux-i386.tar.gz results in
the following error message of the archive manager:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
cmake-2.8.3-Linux-i386.tar.Z is ok.
Greetings
Micha
Am Donnerstag, den 04.11.2010, 08:38 +0100 schrieb Eric Noulard:
2010/11/4 Micha Renner micha.ren...@t-online.de:
Unpacking cmake-2.8.3.tar.gz, cmake-2.8.3-Linux-i386.tar.gz results in
the following error message of the archive manager:
gzip: stdin: not in gzip format
tar: Child returned
Is there a way to specify a WORKING_DIRECTORY for ADD_TEST, similar
ADD_CUSTOM_COMMAND?
Greetings
Micha
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep
Here is a small one.
INSTALL(FILES ${CMAKE_BINARY_DIR}/CTest.conf DESTINATION /usr/local)
always results in this warning:
1 -- Install configuration: Debug
1 CMake Warning (dev) at cmake_install.cmake:31 (list):
1Syntax error in cmake code at
1
1
http://public.kitware.com/Bug/view.php?id=3796 )
Oh thank you, that should be the next topic (long awaited) what I wanted
to test. Now it has to wait. I didn't realize this correlation.
In the meantime, to get rid of the problem for now, turn the new
feature off. In the top level
I get the message CMakePredefinedTarget not available and then VS
message: Cannot load CMakePredefinedTarget project.
What does this mean for the work with CMake and VS2010 Express?
Greetings
Micha
___
Powered by www.kitware.com
Visit other
There were and there are problems with CMake and the Visual Studio
Express Versions.
See: http://www.cmake.org/pipermail/cmake/2010-May/036962.html (macros)
I use the 2010 Express Version, which works astonishingly good. There
are still some minor problems (see
Does CMake support Anjuta?
Greetings
Micha
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
Am Freitag, den 18.06.2010, 10:46 -0400 schrieb David Cole:
I am guessing (hopefully you will confirm) that you are using the VS
Express 2010 version? (As opposed to an earlier version of VS
Express...?)
Yes, VS Express 2010 only.
We fixed an issue that we reproduced using another
Am Mittwoch, den 16.06.2010, 06:56 -0400 schrieb David Cole:
On Wed, Jun 16, 2010 at 1:26 AM, Micha Renner
micha.ren...@t-online.de wrote:
There still some problems with the Express version of VS
I started the gui-version of CMake and generated the solution
files
It seems, that CMake can detect the MSVC specific headers and libraries
only, if it runs within Visual Studio.
For example:
FIND_FILE(STD_FILE stdio.h),
FIND_PATH(STD_PATH stdio.h) or
FIND_LIBRARY(LIB_PATH comctl32)
results in NOT-FOUND, if CMake is run outside the IDE with an empty
Am Dienstag, den 15.06.2010, 14:12 +0200 schrieb Micha Renner:
It seems, that CMake can detect the MSVC specific headers and libraries
only, if it runs within Visual Studio.
For example:
FIND_FILE(STD_FILE stdio.h),
FIND_PATH(STD_PATH stdio.h) or
FIND_LIBRARY(LIB_PATH comctl32)
results
There still some problems with the Express version of VS
I started the gui-version of CMake and generated the solution files
(empty build directory). No errors.
First run in the IDE generates a lot of CMake errors (see appendix).
Another hit on the F7 key: Most errors are gone.
Okay, I can live
There are some things in the cooperation of CMake and the Visual Studio
Express-version, which which bothers me.
Each change in a CMakeLists.txt file results in a message of VS Express
like this: The filter file of your project changed outside VS! Do you
want reload it?
I could live with this,
Am Montag, den 10.05.2010, 12:15 -0400 schrieb Bill Hoffman:
On 5/10/2010 12:10 PM, Micha Renner wrote:
Running this CMake script...
For VS 2010 express you should need a fix in git master, and can be
fixed for any 2.8.1 install. The fix is to copy the
Modules/CMakeVS10FindMake.cmake
Running this CMake script...
PROJECT(T)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
INCLUDE(CheckFunctionExists)
INCLUDE(CheckIncludeFile)
INCLUDE(CheckTypeSize)
INCLUDE(CheckSymbolExists)
ENABLE_TESTING()
TRY_RUN(_result
_compileResult
${CMAKE_CURRENT_BINARY_DIR}
Hello -,
I want to use Msing32-library on Windows
FIND_LIBRARY(MSIMG32_LIBRARY Msimg32)
If I run the cmake-gui it cannot find the library.
There are no problems if cmake runs inside the visual studio.
Are there some enviroment variables I have to set for the gui-version?
Micha
Am Montag, den 19.04.2010, 16:07 -0400 schrieb Benoit Thomas:
Hello,
I'm using an external library which is already compiled. I have wrapped
the library in a MyLib.cmake and use it in cmake as an imported library.
It works fine, but since the include line uses relative path, it changes
Am Freitag, den 26.03.2010, 08:33 +0100 schrieb Michael Wild:
On 25. Mar, 2010, at 23:41 , Hai Nguyen wrote:
Hi all,
Is there a way for me to rename the executable during the install? I'm using
the same CMakeList.txt to build several versions and I'd like to install
them to different
Am Montag, den 08.03.2010, 09:30 -0500 schrieb Bill Hoffman:
Micha Renner wrote:
Yes, there are no problems with this version.
Did you download some other file (perhaps one with Windows line endings)?
It seems so.
Zip-files have Windows line endings?
http://www.cmake.org
Hi Micha:
What specific URL did you download?
From http://www.cmake.org/files/v2.8/?C=M;O=D
I downloaded the cmake-2.8.1-rc4.zip
My previous data was for 2.8.1-rc3. Just now I downloaded
http://www.cmake.org/files/v2.8/cmake-2.8.1-rc4.tar.gz. Bootstrap in source
tree (and subsequent
Am Freitag, den 05.03.2010, 22:39 +0100 schrieb Eric Noulard:
2010/3/5 Bill Hoffman bill.hoff...@kitware.com:
CMake 2.8.1 RC 4 is ready to try:
http://www.cmake.org/files/v2.8/?C=M;O=D
Please try your projects with it. If you find any issues, let me know.
I think this is about it.
Am Samstag, den 06.03.2010, 17:02 +0100 schrieb Eric Noulard:
2010/3/6 Eric Noulard eric.noul...@gmail.com:
Not really a show-stopper since I have no problem using this RC
but I do have a problem Building it on 2 linux boxes
(first is Ubuntu 9.10 and the other is Fedora 11) using gcc
, and it has always
worked. In fact, that procedure worked just fine for cmake-2.8.1-rc3 on my
Debian Lenny platform. So I suspect Micha Renner didn't have a clean
bootstrap=source tree or some issue like that.
No, it was clean. I downloaded the compressed file, unpacked, read
readme.txt
A DLL-library is linked to static library.
The structure of the project is this:
main-project
+- Project STATIC
|
+- Project DLL
This works very well.
But if I include the following export part to the project of the DLL...
INSTALL(TARGETS T-DLL EXPORT
Am Dienstag, den 09.02.2010, 14:34 +0530 schrieb Surya Kiran Gullapalli:
Hello all,
This has been asked for quite a few times with no answer and I'm
putting the same question again.
Do we have the support for solution groups and sub projects with VS
generators. I'm using CMake-2.8.0 (I
Am Dienstag, den 09.02.2010, 11:34 +0100 schrieb Michael Wild:
On 9. Feb, 2010, at 11:05 , Micha Renner wrote:
A DLL-library is linked to static library.
The structure of the project is this:
main-project
+- Project STATIC
|
+- Project DLL
I install a library (TLib) and their export files with these commands:
INSTALL(TARGETS TLib EXPORT TLibX RUNTIME DESTINATION dll
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
INSTALL(EXPORT TLibX NAMESPACE mp_
Am Freitag, den 05.02.2010, 09:51 +0100 schrieb Michael Wild:
Hmmm, that appears to be a bug. Anyways, I usually call the EXPORT something
like TLibExports or TLibTargets.
You are right, this is the best solution
Micha
___
Powered by
Am Donnerstag, den 28.01.2010, 11:40 +0100 schrieb Michael Wild:
But you'll certainly want to have a look at the CONFIG_POSTFIX target
property or the CONFIG_POSTFIX variable for setting a postfix (such as d)
depending on the configuration.
Michael
Yes! This tip was very helpful and
In the FQ Setction there is a excellent example how to handle generated
files in a subdirectory.
The structure is:
mainDirectory (CMakeLists.txt)
+ ADD_SUBDIRECTORY(src1) (generates the file)
|
+ Process the file
This works also for this structure
Recently, someone ask for PKG_SEARCH_MODULE
At first, I thought simple flag is flag:
PROJECT(MiG)
INCLUDE (FindPkgConfig)
# For GTK
PKG_SEARCH_MODULE(GTK REQUIRED gtk+-2.0)
SET(_targetname ULS)
SET(_src CTest.c)
ADD_EXECUTABLE(${_targetname} ${_src})
SET_TARGET_PROPERTIES(${_targetname}
Okay, we are at the very beginning.
# require at least cmake 2.6
project(qlom) # Should be the first command
cmake_minimum_required(VERSION 2.6 FATAL_ERROR )
# Maybe this adds support for moc
# if it is part of Qt
# This should deliver QT_INCLUDE_DIR and QT_LIBRARIES see the doco (I
1 - 100 of 132 matches
Mail list logo