[CMake] How to preserve directory structure within Visual Studio

2011-12-08 Thread Stephen Torri
CMake version: 2.8 IDE: Visual Studio 2008 For the source and header files I would like to preserve the directory structure within the Visual Studio Header Files and Source Files folders. Without it should there occur two files with the same name but in different directories only one is shown.

Re: [CMake] Install command incorrectly installing archive libraries

2011-11-18 Thread Stephen Torri
would behave that way? Stephen On 11/18/11, Michael Wild them...@gmail.com wrote: On 11/17/2011 06:12 PM, Stephen Torri wrote: CMake Version: 2.8 Generator: Visual Studio 2008 Problem: Two install commands are used per library. First command should only install libraries to lib/debug when

Re: [CMake] Install command incorrectly installing archive libraries

2011-11-18 Thread Stephen Torri
On Fri, 2011-11-18 at 22:49 +0100, Michael Wild wrote: Sorry, I misread the documentation myself. You need multiple install() commands, for each configuration one, but after each DESTINATION option you also need the COMPONENTS option. So, this would be something like this: install(TARGETS

[CMake] Install command incorrectly installing archive libraries

2011-11-17 Thread Stephen Torri
CMake Version: 2.8 Generator: Visual Studio 2008 Problem: Two install commands are used per library. First command should only install libraries to lib/debug when the build type is Debug. The second command should only install libraries to the lib/release directory. When the build type is Debug

Re: [CMake] Installing Visual Studio PDB files with CMake

2011-11-16 Thread Stephen Torri
On 11/4/11, Michael Hertling mhertl...@online.de wrote: The problem is that PDB files are usually generated next to their binary in a configuration-specific directory which can not be accessed smoothly by INSTALL(FILES ...). However, you can use a POST_BUILD custom command in conjunction with

[CMake] Problem with target DLL name not matching SWIG dllimport name

2011-11-16 Thread Stephen Torri
I am using CMAKE_DEBUG_POSTFIX to attach a string to end of each DLL name being built using Visual Studio 2008. The DLLs have the name that expect which is the target name + CMAKE_DEBUG_POSTFIX. The problem I am running into is the SWIG wrapper DLL name does not match the dllimport flag when

[CMake] Installing Visual Studio PDB files with CMake

2011-11-03 Thread Stephen Torri
Searching the net for how to install PDB files with CMake comes up with no real solution. I can see from the mailing list archives that this issue had been brought up before. What is am acceptable way to install PDB files when compiling on Windows? Stephen -- Sent from my Android phone with

[CMake] Not sure how to list C# files in the generated Visual Studio project

2011-09-26 Thread Stephen Torri
I am using CMake to run SWIG to generate C# wrapper files for a project. While the attached CMakeLists.txt file produces a Visual Studio solutions that builds the C++ library, C# wrapper library and C# prototype executable I don't know first if I am using CMake correctly in this case. Secondly I

[CMake] Unable to locate boost_unit_test_framework-vc90-mt-gd-1_45.lib

2011-08-10 Thread Stephen Torri
I am having a problem setting up CMake to find the Boost unit test framework library when building a test program. In the top level CMakeLists.txt file I have: ENABLE_TESTING() add_subdirectory ( path/to/test ) In the test directory CMakeLists.txt file I have: LINK_DIRECTORIES (

[CMake] Problem: Cannot change name of installer package with CPack

2011-07-07 Thread Stephen Torri
Problem: Cannot change name of installer package. Cmake version: 2.8.4 I am trying to change the value of CPACK_PACKAGE_NAME depending upon which build was performed. What I am seeing is that CPACK_PACKAGE_NAME is always set to the project name. The code I am using to try and change the name is

[CMake] How to link specific static libraries

2011-06-29 Thread Stephen Torri
Normally we use target_link_libraries to link against certain libraries. For example: target_link_libraries ( mytarget A B C ) Well when I am working on creating regressions tests for my library, called mytarget, I would use the same CMake command to link against the boost unit test framework

[CMake] Fwd: Problem finding DLLS to use with tests

2011-06-23 Thread Stephen Torri
On Thu, Jun 23, 2011 at 11:37 AM, aaron.mead...@thomsonreuters.com wrote: Can you post your CMakeLists.txt? Did you get different errors for each of the 3 solutions you tried, or were they all the same error? What was the exception code? I got the same error. I did not receive a

[CMake] Problem finding DLLS to use with tests

2011-06-22 Thread Stephen Torri
I am using cmake 2.8 for building MSVC solutions for a project. The project builds fine as do the tests on Windows. The problem comes when I try to run the tests. I usually get an error message that the dependent DLLs cannot be found. I have searched on google for an answer and came up with a

[CMake] Problem finding installed library on Windows platform

2011-06-20 Thread Stephen Torri
Subject: Finding libraries on Windows platform I am using CMake 2.8 on Windows XP to create a Visual Studio 2010 solution. The problem I am having is that I cannot get CMake to find libraries on the system. These libraries were created by us for other project. Here is the CMake module