Is there a way to make CMake variables defined by the SET
command read-only so that an attempt to redefine the variable
generates an error?
Thanks,
Dave Feustel
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
I am trying to create the loadable command described
on page 147 of _Mastering CMake_ ver 2.2.
I have typed in the file cmHELLO_WORLD.c
#include "cmCPluginAPI.h"
static int InitialPass(void *inf, void *mf, int argc, char *argv[])
{
cmLoadedCommandinfo *info = (cm
Erk wrote:
> 2007/4/20, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> > module names are all listed in the modules directory.
> > How do I figure out what the package names to use
> > with FIND_PACKAGE are?
>
> If the file is named
>
> FindXXyy.cmake
>
> you should use
>
> FIND_PACKAGE(XXyy)
>
> un
module names are all listed in the modules directory.
How do I figure out what the package names to use
with FIND_PACKAGE are?
Thanks,
Dave
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
Bill asked if, after deleting the old cmake package
and rebuilding and installing the new 2.4.6 cmake,
I was running the correct cmake.
There is no way I can prove that unless there is
a verbose mode in cmake that prints out the version
number. Also would be nice if there were a debug
mode that wo
> Alan W. Irwin wrote:
> > On 2007-04-20 17:23- [EMAIL PROTECTED] wrote:
> >
> >> I started experimenting with the INCLUDE()
> >> statement but have only been able to get
> >> it to find modules by supplying the full
> >> module path. Is there a way to specify a
> >> default path for INCLUDE so
I removed the OpenBSD CMake 2.4 package.
I built and installed CMake 2.4.6 and
ran the command "cmake . " with CMakeLists.txt
containing:
Find_Package(JPEG)
Find_Package(Qt3)
set (p /usr/local/share/cmake-2.4/Modules)
INCLUDE(${p}/FindPNG.cmake)
INCLUDE(${p}/FindX11.cmake)
INCLUDE(${p}/FindQt3.c
I started experimenting with the INCLUDE()
statement but have only been able to get
it to find modules by supplying the full
module path. Is there a way to specify a
default path for INCLUDE so that only
the module name is needed?
These do not work for me on 64-bit OpenBSD 4.0:
INCLUDE(FindJPEG)
I tried modifying the find_lib code but
it still does not work. Plus the comment line
"#-" generates an error.
# from page 37
macro(ASSERT test comment)
if (NOT ${test})
message ("Assertion failed: ${comment}")
endif (NOT ${test})
endmacro(ASSERT)
find_library(MYLIB jpeg )
ASSER
I do not see why libjpeg.a is not found by
find_library? What am I missing?
Thanks,
Dave Feustel
# from page 37 of _Mastering CMake_, 2nd edition
macro(ASSERT test comment)
if (NOT ${test})
message ("Assertion failed: ${comment}")
endif (NOT ${test})
endmacro(ASSERT)
find_library(MYLIB
I created a CMakeLists.txt file with the following:
# set a list of items
SET(items_to_buy apple orange pear beer)
# loop over the items
FOREACH (item $(items_to_buy))
MESSAGE( "Don't forget to buy a $(item)" )
ENDFOREACH (item $(items_to_buy))
MESSAGE( $(items_to_buy) )
when I run ei
1) Is there a way for CMake to generate a CMakeLists.txt file automagically
for a new project in the way the QMAKE does when it is run with
the -project option?
2) Is there any software for automagically creating a CMakeLists.txt file
from a configure file?
Thanks,
Dave Feustel
_
12 matches
Mail list logo