Re: [CMake] Beginners Guide to Cmake and Modern Cmake

2018-07-28 Thread Stefan Buschmann
Hi, you may also have a look at our cmake template "cmake-init", which we have been developing for several years now, based on modern CMake. It may seem a bit overwhelming at first, but we tried to put in many best practices and support everything from building, to testing, documentation, up

Re: [CMake] No response so far. -- Looking for fixed contract help building Library with CMake.

2016-08-12 Thread Stefan Buschmann
Did you realize that there already is a download for the library in binary form? See "DCMTK 3.6.0 - support libraries for Windows" on the website you posted. That should be all you need to use that library in your own projects. Do you require any special configuration that you need to build it

Re: [CMake] Help using CMake Expat in Windows

2010-07-30 Thread Stefan Buschmann
Hi! Am 30.07.2010 22:23, schrieb Clark Taylor: I have created a very simple CMake file (I am a newbie) that works wonderfully in Linux, but am having problems in Windows. The CMakeLists.txt is below #I think 2.6 is required for some of things I do below, but I am not sure

[CMake] Minor error in CMake Tutorial?

2010-07-08 Thread Stefan Buschmann
Hi all! I just noted a possible error in the CMake tutorial at http://www.cmake.org/cmake/help/cmake_tutorial.html : The tutorial states: cmake_minimum_required (2.6) while according to my version of cmake (2.6-patch 4) and the current documentation it should read:

Re: [CMake] Non-build output

2010-06-20 Thread Stefan Buschmann
Am 20.06.2010 19:14, schrieb Clark Gaebel: How would I go about placing a text file in the same directory as a target's output? For example, let's say I have a target called foo, which creates an executable. foo has a config file called foo.conf that should always go in the same directory. At

Re: [CMake] Converting a OpenCL program into a C++ header?

2010-06-15 Thread Stefan Buschmann
Am 15.06.2010 23:13, schrieb Daniel Blezek: Hi, We would like to convert an OpenCL program written in a separate file to a C++ header (essentially a long string). For example, if my OpenCL program is in the file Square.cl __kernel square( __global float* input, __global float*

Re: [CMake] Executable project creating an import library

2009-01-24 Thread Stefan Buschmann
Robert Dailey schrieb: I've specified a very complex CMake script that generates an executable project. When I use this CMake script to generate a Visual Studio 2008 project, the Import Library property located in Project Settings Linker Advanced property page in Visual Studio 2008 has a

Re: [CMake] WIN32_EXECUTABLE - Config specific settings for visual studio generated project files?

2008-10-07 Thread Stefan Buschmann
, Oct 6, 2008 at 10:49 AM, Stefan Buschmann [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Jason Eubank schrieb: Hello, I am wondering if it is possible to set the target property 'WIN32_EXECUTABLE' on a per-config basis (i.e. you can set link-flags on a per

Re: [CMake] WIN32_EXECUTABLE - Config specific settings for visual studio generated project files?

2008-10-06 Thread Stefan Buschmann
Jason Eubank schrieb: Hello, I am wondering if it is possible to set the target property 'WIN32_EXECUTABLE' on a per-config basis (i.e. you can set link-flags on a per-config basis using LINK_FLAGS_Config). From reading the documentation this does not seem possible and if you set this

Re: [CMake] /DELAYLOAD flag doesnt stick when making a vc8 project

2008-10-03 Thread Stefan Buschmann
Hi! If you get this error message, the /DELAYLOAD-option is obviously passed to the compiler correctly, so it can't be a problem with CMake. I would think that the space between : and mylib.dll might be the problem. Have you tried it without a space? set_target_properties(mylib PROPERTIES

Re: [CMake] Generating shared libraries on Visual 8.0

2008-09-29 Thread Stefan Buschmann
How do you create those libraries in your CMakeLists.txt? To build a shared library, you usually only need to specify SHARED when calling ADD_LIBRARY, e.g. ADD_LIBRARY(MyProject SHARED ${PROJECT_SOURCES}) If you want to decide whether to build static or dynamic libraries based on a variable,

Re: [CMake] shared libraries .lib .dll

2008-06-19 Thread Stefan Buschmann
Pierre Malarme schrieb: hi, i've taken your advice on the __declspec stuff and test it on a hello world project. i do have a .lib now but with a warning hello.cxx ..\..\CMakeExample\Hello\hello.cxx(5) : warning C4273: 'Hello::Print' : inconsistent dll linkage

[CMake] How to set up Cygwin + CMake + GNU Makefiles + cl.exe correctly?

2008-05-30 Thread Stefan Buschmann
Hi all! I'm trying to build my project on Windows using GNU Makefiles and cl.exe under Cygwin. I'm using CMake-2.6-patch 0 and Microsoft Visual Studio 2008 Professional. I know this issue has come up every now and then, and it seems that it should not be too hard to set this up. However,

Re: [CMake] How to set up Cygwin + CMake + GNU Makefiles + cl.exe correctly?

2008-05-30 Thread Stefan Buschmann
not set. I'm now exporting all those variables directly in my .bashrc file - is there a better way to invoke the script? Thanks, Stefan Bill Hoffman schrieb: Stefan Buschmann wrote: Hi all! I'm trying to build my project on Windows using GNU Makefiles and cl.exe under Cygwin. I'm using

Re: [CMake] ifort and msys == trouble

2008-05-18 Thread Stefan Buschmann
Hi, I don't know ifort, but I had the same problem with Makefiles and MSYS a while ago. Since it works with cygwin I assume ifort knows cygwin and handles the forward slash right. Does anyone know if ifort has a flag or environment variable name to set which tells ifort its working on

Re: [CMake] Setting Link Library Dependencies Flag in VS 2005

2008-05-05 Thread Stefan Buschmann
There doesn't seem to be a command line switch for this, because the compiler/linker can't know the dependencies when called independently. (see http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=83916SiteID=1). So you can't use ADD_DEFINITIONS or similar to set this option from CMake.

Re: [CMake] Treat wchar as built-in type in Cmake ?

2008-02-08 Thread Stefan Buschmann
Just add the corresponding command line option for the compiler: ADD_DEFINITIONS( /Zc:wchar_t-# Treat wchar_t as built-in type ) BTW: The command line switch for a specific option is usually mentioned in the comments for that option in Visual Studio.

Re: [CMake] Custom build command for documentation

2008-01-08 Thread Stefan Buschmann
Hi, You can just define custom dependencies to include all your documentation in one doc target. E.g. I have a target Docs in my project: ADD_CUSTOM_TARGET(Docs) And then in each subdirectory that contains a documentation project, I write e.g.: ... ADD_CUSTOM_TARGET(Docs-Doxygen

[CMake] Ignoring return codes on ADD_CUSTOM_COMMAND (hhc.exe)

2007-10-22 Thread Stefan Buschmann
Hi all, I'm currently having a problem using the HTMLHelp Compiler (hhc.exe) in my CMake-Scripts. I build the doxygen docs, then call hhc.exe and the .chm file is created correctly. But hhc.exe seems to return an error code, so the build has failed and my post-build commands are not invoked.

Re: [CMake] defining preprocessor statements

2007-10-20 Thread Stefan Buschmann
Use ADD_DEFINITIONS: ADD_DEFINITIONS(-DWIN32 -DWINDOWS) - Stefan Mark Wyszomierski schrieb: Hi, How do we define a preprocessor statement - in win32 projects you usually need to see the following in the C/C++ - Preprocessor statements section: _WIN32, _WINDOWS ...etc so in the

[CMake] INCLUDE_DIRECTORIES and $(VCInstallDir)

2007-10-18 Thread Stefan Buschmann
Hi all, I'm trying to build a project that uses DirectX 9. To compile correctly, the include path order must be adjusted so that the Platform SDK is prefered over the DirectX include directories. This is done by setting the include directories to: $(VCInstallDir)PlatformSDK/include

Re: [CMake] Force rebuild

2007-03-26 Thread Stefan Buschmann
Min Cu wrote: I have a project which needs to be rebuild every time make is called (whether the project has changed or not). How do I do it? Thanks, Min _ Solve the Conspiracy and win fantastic prizes.

Re: [CMake] Dynamic libraries and library dependencies

2007-02-01 Thread Stefan Buschmann
Bill Hoffman wrote: Now, when building the project, cmake tries to link libFoo to the sample application instead of linking it to the dynamic library (which is explained in the cmake faq). So it adds -lFoo to the command line, but that library can't be found because the path to the library is

Re: [CMake] linking libraries statically

2007-02-01 Thread Stefan Buschmann
Omar Souka wrote: When the application is linked, it links in the same static libraries as the shared library. This seems like a bug to link the libraries twice. Am I doing something wrong? Have a look at the CMake FAQ (http://www.cmake.org/Wiki/CMake_FAQ): Why are libraries linked to my

[CMake] Dynamic libraries and library dependencies

2007-01-31 Thread Stefan Buschmann
Hi all I'm trying to build a project that consists of several shared libraries and some applications using those libraries. The directory layout is as follows (simplified): Project Project/CMakeLists.txt Project/SharedLib Project/SharedLib/CMakeLists.txt Project/SharedLib/include

[CMake] Cross compiling using MSVC via wine on linux

2007-01-06 Thread Stefan Buschmann
Hi all This is one more question about how to get cmake doing cross compile jobs. I know there isn't direct support for it yet, but it would be nice if it would somehow be possible to do that with cmake. I'm setting up a make system for a fairly large project (game engine) with cmake, and