[CMake] FindOOoSDK.cmake jam

2010-12-14 Thread luxInteg
Greetings, I keep stalling on line 100 of FindOOoSDK.cmake shipped with the current version of koffice (of kde.org) (A copy is attached) I have all the prerequisites installed in /opt/openoffice.org. I would be grateful if someone more aufait with cmake modules could offer some advice on w

Re: [CMake] Cross-compiling, CMAKE_C_FLAGS, and configure-time compiler tests

2010-12-14 Thread Justin Holewinski
On Tue, Dec 14, 2010 at 4:45 AM, Johan Björk wrote: > Hi Justin, > > I'm very unsure if this is the correct solution, but it worked for me. I > haven't been able to find any good documentation stating how the CMakeCache > interacts with other parts of CMake. > > My assumption is that since CMAKE_

Re: [CMake] CTest and PYTHONPATH

2010-12-14 Thread Michael Wild
On 12/14/2010 05:00 PM, Anders Wang Kristensen wrote: > Hi, > > I'm having some trouble setting PYTHONPATH in order to test a python > extension module built with cmake. > Currently I do the following: > > add_test(NAME py_test COMMAND ${PYTHON_EXECUTABLE} > ${CMAKE_CURRENT_SOURCE_DIR}/test_r

[CMake] CTest and PYTHONPATH

2010-12-14 Thread Anders Wang Kristensen
Hi, I'm having some trouble setting PYTHONPATH in order to test a python extension module built with cmake. Currently I do the following: add_test(NAME py_test COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_runner.py) if (CMAKE_CONFIGURATION_TYPES) set (PY_DIR ${CMAKE_BINARY

Re: [CMake] Visual Studio project layout

2010-12-14 Thread David Cole
Actually, it's just "FOLDER". http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:FOLDER Set the target property FOLDER on the targets that you want to put in folders. Then activate it by setting the global property USE_FOLDERS to ON. http://cmake.org/cmake/help/cmake-2-8-docs.html#pro

Re: [CMake] How to inform the linker of segment properties

2010-12-14 Thread Rolf Eike Beer
> I am building a Windows DLL that has some of its global variables > allocated in a special shared memory segment. > > In order to inform the linker (VS Express 2008) about the segment's > properties, I need to provide the following command-line parameter to the > linker: > > /SECTION:.shared,RW

[CMake] How to inform the linker of segment properties

2010-12-14 Thread Steven Knock
I am building a Windows DLL that has some of its global variables allocated in a special shared memory segment. In order to inform the linker (VS Express 2008) about the segment's properties, I need to provide the following command-line parameter to the linker: /SECTION:.shared,RWS Could anyone

Re: [CMake] Visual Studio project layout

2010-12-14 Thread Rolf Eike Beer
> I'm trying to reduce the number of toplevel projects in my CMake > generated Visual Studio solution. The idea is to group some targets in > solution paths. The layout should look like this: > > Solution > - Target 1 > - Foo >     + Target 2 >     + Target 3 > - Target 4 > ... > > Is there a w

Re: [CMake] Cross-compiling, CMAKE_C_FLAGS, and configure-time compiler tests

2010-12-14 Thread Johan Björk
Hi Justin, I'm very unsure if this is the correct solution, but it worked for me. I haven't been able to find any good documentation stating how the CMakeCache interacts with other parts of CMake. My assumption is that since CMAKE_C{XX}_FLAGS is supposed to allow the user to set optional compilat

[CMake] Visual Studio project layout

2010-12-14 Thread Diablo 666
Hi all, I'm trying to reduce the number of toplevel projects in my CMake generated Visual Studio solution. The idea is to group some targets in solution paths. The layout should look like this: Solution - Target 1 - Foo + Target 2 + Target 3 - Target 4 ... Is there a way to achieve this wit