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
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
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
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:
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
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*
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
, 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
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
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
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,
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
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,
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
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
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.
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.
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
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.
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
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
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.
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
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
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
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
26 matches
Mail list logo