[CMake] Set the "Link Library Dependencies" property to "Yes"

2012-04-11 Thread Hashim Mir
Hi all, I am working on a Cmake project right now, and I'm wondering if there is a way to get Cmake to set the "Link Library Dependencies" option to "Yes" (currently, it defaults to "No"). I can easily do this in Visual Studio by going: Project Properties > Linker > General > Link Library Depe

[CMake] Working with Multiple Projects

2012-03-19 Thread Hashim Mir
Hi there, I am currently working on transitioning over a project (that has multiple subprojects inside of it) over to Cmake. There is one thing that I am not sure about - basically, to include the subprojects from the top level CMakeLists.txt file, I just utilize the add_subdirectory command,

Re: [CMake] Customizing the output directory

2012-03-02 Thread Hashim Mir
ehalf Of Hashim Mir Sent: March-02-12 3:05 PM To: cmake@cmake.org Subject: [CMake] Customizing the output directory Hi there, I am trying to get Cmake to put generated files in a specific directory using the following code: set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/x64 )

[CMake] Customizing the output directory

2012-03-02 Thread Hashim Mir
Hi there, I am trying to get Cmake to put generated files in a specific directory using the following code: set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/x64 ) set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/x64 ) But it doesn't seem to be making any differ

Re: [CMake] Accessing Variables from within a *.cmake file

2012-02-23 Thread Hashim Mir
BuildSetup.cmake is called from the command line: cmake.exe -G "Visual Studio 2008" -C BuildSetup.cmake -Wdev -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Hashim Mir Sent: February-23-12 11:52 AM To: David Cole Cc: cmake

Re: [CMake] Accessing Variables from within a *.cmake file

2012-02-23 Thread Hashim Mir
Nope, I am not running it with -P. My BuildSetup.cmake sets the flags that are passed in to the compiler ex: set(CMAKE_CXX_FLAGS ...) -Original Message- From: David Cole [mailto:david.c...@kitware.com] Sent: February-23-12 11:45 AM To: Hashim Mir Cc: John Drescher; cmake@cmake.org

Re: [CMake] Accessing Variables from within a *.cmake file

2012-02-23 Thread Hashim Mir
-12 10:48 AM To: Hashim Mir Cc: cmake@cmake.org Subject: Re: [CMake] Accessing Variables from within a *.cmake file On Thu, Feb 23, 2012 at 10:39 AM, Hashim Mir wrote: > Hi, > > > I am trying to control the flow of my program based on the value of a > cmake variable called CMAK

[CMake] Accessing Variables from within a *.cmake file

2012-02-23 Thread Hashim Mir
Hi, I am trying to control the flow of my program based on the value of a cmake variable called CMAKE_SIZEOF_VOID_P. To start off, I wanted to just see what value this variable took under multiple different configurations, by issuing the following command in my cmakelists.txt file: message(${

Re: [CMake] On WINDOWS, Is it Possible to build 64-bit and 32-bit Solutions in One Go?

2012-02-17 Thread Hashim Mir
Thanks a lot for your response! -Original Message- From: John Drescher [mailto:dresche...@gmail.com] Sent: February-16-12 3:29 PM To: Hashim Mir Cc: cmake@cmake.org Subject: Re: [CMake] On WINDOWS, Is it Possible to build 64-bit and 32-bit Solutions in One Go? On Thu, Feb 16, 2012 at 3

[CMake] On WINDOWS, Is it Possible to build 64-bit and 32-bit Solutions in One Go?

2012-02-16 Thread Hashim Mir
Hi, This is what I am doing presently in order to compile both a 32-bit and a 64-bit version of my project: cmake.exe -G "Visual Studio 9 2008" #for x32 cmake.exe -G "Visual Studio 9 2008 Win64" #for x64 Is it possible to consolidate the two individual statements into one somehow, in