Re: [CMake] public headers with different subdirectories

2008-10-14 Thread Michael Jackson
I use the following: SET (HEADERS Common/Types.h Common/ICore.h ) SET (NAME Common) INSTALL (FILES ${HEADERS} DESTINATION include/MXADataModel/${NAME} COMPONENT Headers ) This was actually taken from a Macro that I wrote to do all this for me. If you want the

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

2008-10-07 Thread Michael Jackson
Thought this was handy enough to add a wiki entry: http://www.cmake.org/Wiki/VSConfigSpecificSettings Mike On Oct 7, 2008, at 12:49 AM, Jason Eubank wrote: Thanks Stefan, this worked well. My exact usage using your recommendations was as follows: if(WIN32)

Re: [CMake] XCode 3.0

2008-10-06 Thread Michael Jackson
CMake should be supporting Xcode through 3.1 when run on Leopard. Are you having some issues with this? Xcode will automatically select the best number of compile processes to use when compiling. There are over rides that you can do using the defaults system. Google around for them.

Re: [CMake] Small, realistic Cpack example

2008-10-01 Thread Michael Jackson
http://www.cmake.org/Wiki/BuildingOSXApplications Done. and I updated the project also. it can now be found also on the wiki site: http://www.cmake.org/Wiki/images/e/e3/QTTest.zip The updates include changes so that the bundle only gets completed during a installation process. I welcome

Re: [CMake] Generating shared libraries on Visual 8.0

2008-09-30 Thread Michael Jackson
This is what I use: # Build shared libraries OPTION (BUILD_SHARED_LIBS Build Shared Libraries OFF) SET (LIB_TYPE STATIC) SET (MXA_BUILT_AS_DYNAMIC_LIB) IF (BUILD_SHARED_LIBS) SET (LIB_TYPE SHARED) SET (MXA_BUILT_AS_DYNAMIC_LIB 1) IF (WIN32) ADD_DEFINITIONS(-DMXA_BUILT_AS_DYNAMIC_LIB)

Re: [CMake] Xcode generator issues

2008-09-30 Thread Michael Jackson
The issue is that the build system for boost does NOT set an install_name, a path embedded in the library that executables can use to find the library after linking. You have a few choices at this point. 1) Hack boost's build system to add in the correct install_name 2) Manually use

Re: [CMake] CMAKE_CURRENT_SOURCE_DIR for modules

2008-09-29 Thread Michael Jackson
include(${CMAKE_CURRENT_SOURCE_DIR}/extrastuff.cmake) Just guessing but it seems like it should work.. Mike On Sep 29, 2008, at 6:30 PM, James Bigler wrote: Is it possible to include a file that is local to a module? I want to do this: FIND_PACKAGE(MyPackage) MyPackage.cmake:

Re: [CMake] Dependent Libraries added automatically?

2008-09-26 Thread Michael Jackson
On Sep 26, 2008, at 2:28 PM, Bill Hoffman wrote: Mike Jackson wrote: I started noticing some warnings when I am linking my project executables that bascially says libraries are listed multiple times on the link line. Now this is just a warning so I _could_ ignore it but I am curios about

Re: [CMake] cmake link against Qt4's OpenGL

2008-09-26 Thread Michael Jackson
Can you send the source files? Mike On Sep 26, 2008, at 3:02 PM, Linge Bai wrote: Hi everybody, I have a project developed by Qt4's OpenGL, for example plenty of usage of QGLWidget class. I want to use cmake to compile this project, instead of using qmake, because I need to combine

Re: [CMake] cmake link against Qt4's OpenGL

2008-09-26 Thread Michael Jackson
You are building on 10.5 using the 10.4u sdk. Why. If you need to deploy on 10.4 then you will need to add the following CMAKE_C_FLAGS and CMAKE_CXX_FLAGS to your compile. -mmacosx-version-min=10.4. and change the CMAKE_OSX_SYSROOT to 10.5.sdk. This scenario will make sure your app can run

Re: [CMake] cmake link against Qt4's OpenGL

2008-09-26 Thread Michael Jackson
What is your OS X version, (PPC or Intel), Xcode toolset version, and what are you setting the CMAKE_OSX_SYSROOT value to? It should be / Developer/SDKs/MacOSX10.5.sdk Mike On Sep 26, 2008, at 4:26 PM, Linge Bai wrote: so if I use cmake 2.6.1, with the following CMakeList.txt file:

Re: [CMake] cmake link against Qt4's OpenGL

2008-09-26 Thread Michael Jackson
the compile and link lines.. Mike On Sep 26, 2008, at 4:40 PM, Linge Bai wrote: my mac os x is 10.5.4, it's PPC. Xcode is version 3.1. I'm sorry that I have no idea how to check CMAKE_OSX_SYSROOT. Linge On Fri, Sep 26, 2008 at 4:33 PM, Michael Jackson [EMAIL PROTECTED] wrote: What is your OS

Re: [CMake] cmake link against Qt4's OpenGL

2008-09-26 Thread Michael Jackson
: *** [all] Error 2 Have I linked to QTOPENGL or not? Linge On Fri, Sep 26, 2008 at 4:43 PM, Michael Jackson [EMAIL PROTECTED] wrote: run ccmake instead of cmake on your project. Look down the left hand side of cmake variables. It should be listed. By default it should be 10.5.sdk so I am

Re: [CMake] Fwd: cmake link against Qt4's OpenGL

2008-09-26 Thread Michael Jackson
) not found collect2: ld returned 1 exit status make[2]: *** [exe] Error 1 make[1]: *** [CMakeFiles/exe.dir/all] Error 2 make: *** [all] Error 2 On Fri, Sep 26, 2008 at 4:59 PM, Michael Jackson [EMAIL PROTECTED] wrote: Set the CMAKE_OSX_SYSROOT to /Developer/SDKs/MacOSX10.5.sdk and try again

Re: [CMake] Fwd: Fwd: cmake link against Qt4's OpenGL

2008-09-26 Thread Michael Jackson
, this program runs well when compile with qmake. Linge On Fri, Sep 26, 2008 at 5:18 PM, Michael Jackson [EMAIL PROTECTED] wrote: Look in the GLWidget source file and see if there is actually a zRotationChanged(int) method available. Mike On Sep 26, 2008, at 5:15 PM, Linge Bai wrote: I set

Re: [CMake] qt standalone project : static link or dll copy (and how to do it?)

2008-09-25 Thread Michael Jackson
The following is what I use. There may be better methods or methods that are now built into CMake 2.6.x that I am unaware of. # -- # This CMake code installs the needed support libraries on NON OSX platforms #

Re: [CMake] Problems with cmake, visualstudio generator and add_library / target_link_libraries

2008-09-24 Thread Michael Jackson
target_link_libraries(socket ws2_32) Cmake will figure out the proper suffix to use. Mike On Sep 24, 2008, at 4:56 AM, Thomas Veith wrote: target_link_libraries(socket ws2_32.lib ___ CMake mailing list CMake@cmake.org

Re: [CMake] Building shared libs on visual

2008-09-24 Thread Michael Jackson
On Sep 24, 2008, at 5:47 AM, Julien Michel wrote: Werner Smekal a écrit : Hi, maybe you forgot to export symbols? http://www.cmake.org/Wiki/BuildingWinDLL Dear Werner, Thank you, I did search the cmake Wiki for something like that, but I did not manage to find this page. I think we are

Re: [CMake] Problems with cmake, visualstudio generator and add_library / target_link_libraries

2008-09-24 Thread Michael Jackson
Michael Jackson [EMAIL PROTECTED]: target_link_libraries(socket ws2_32) Cmake will figure out the proper suffix to use. Mike On Sep 24, 2008, at 4:56 AM, Thomas Veith wrote: target_link_libraries(socket ws2_32.lib ___ CMake mailing list CMake

<    4   5   6   7   8   9