[CMake] Problems building a MODULE library (OpenFX plugin) with correct cuda object linking

2017-01-10 Thread dev
Hello, after hours and hours of searching and trying to get it to work I hope someone here can help me as I'm now out of ideas. I'm trying to build an OpenFX plugin for DaVinci Resolve (a movie color grading software, https://www.blackmagicdesign.com/products) via CMake. Resolve is delivered

[CMake] (no subject)

2015-04-28 Thread Lukast dev
Hello guys, I use multi-configuration generator (MSVC 2008) and I need to create one solution containing two configurations for one library target N: For build type Debug target N is compiled as static library For build type Release target N is compiled as shared library Something like this, but

[CMake] Generating Visual Studio 2008 solution with specified toolset in command-line

2013-09-20 Thread Lukast dev
Hello, I partially ported our project from Visual Studio vcproj files to cmake. I'm successful when I use cmake-gui and I select generator "Visual Studio 9 2008 Windows Mobile 5.0 Smartphone SDK (ARMV4I). Correct solution file is generated and I can compile. Now I'm trying to generate solution f

Re: [CMake] Using CMake with SWIG and Ruby

2012-04-14 Thread Dev Guy
Bumping to the top, still looking for some help. On Tue, Apr 10, 2012 at 9:52 PM, Dev Guy wrote: > Hi Guy, with all my searching and reading I've have not been able to > find a way to build a Ruby extension using SWIG with CMake. Here is my > CMakeLists.txt > > CMAKE_MINIMUM_

[CMake] Using CMake with SWIG and Ruby

2012-04-10 Thread Dev Guy
ruby person.i person.cpp) SWIG_LINK_LIBRARIES(person ${RUBY_LIBRARY}) When I type make, I get the following error: [ 33%] Swig source /home/yadav/dev/cpp/swig_example/person.h:19: Error: Unable to find 'string' make[2]: *** [personRUBY_wrap.cxx] Error 1 make[1]: *** [CMakeFiles/person.dir

Re: [CMake] how to specify a different source directory

2012-02-02 Thread Dev Guy
On Thu, Feb 2, 2012 at 7:46 PM, Dev Guy wrote: > I have a project file and within it I have created a test folder and > placed some testing code there. From my test CMakelist, I need to > access a .cpp file from the parent folder but I am not sure how to do > this? > >

[CMake] how to specify a different source directory

2012-02-02 Thread Dev Guy
I have a project file and within it I have created a test folder and placed some testing code there. From my test CMakelist, I need to access a .cpp file from the parent folder but I am not sure how to do this? Thus the call to add_executable fails because it can't locate the source file. -- Kin

Re: [CMake] syntax error on Win7 x64

2012-01-31 Thread Dev Guy
OK I realized my error, I should be using $ENV{MSSDK_ROOT} On Wed, Feb 1, 2012 at 12:02 AM, Dev Guy wrote: > I am seeing an error from CMake on Win7 x64 that I don't see in WinXP. > > The following 2 statements seems to be causing the errors below (I've > double checked th

[CMake] syntax error on Win7 x64

2012-01-31 Thread Dev Guy
k_directories("${ENV[MSSDK_ROOT]}\\Lib") CMake Error === CMake Warning (dev) at CMakeLists.txt:9 (include_directories): Syntax error in cmake code at C:/dev/cpp/Project/safetynet/MonitorTestClient/CMakeLists.txt:9 when parsing string ${ENV[MSSDK_ROOT]}\\Include synta

Re: [CMake] Fwd: building libs and specifying addition folders

2012-01-18 Thread Dev Guy
On Thu, Jan 19, 2012 at 1:01 AM, John Drescher wrote: > -- Forwarded message -- > From: John Drescher > Date: Thu, Jan 19, 2012 at 1:00 AM > Subject: Re: [CMake] building libs and specifying addition folders > To: Dev Guy > > > On Wed, Jan 18, 2012 at

[CMake] building libs and specifying addition folders

2012-01-18 Thread Dev Guy
Hi, I am relatively new to CMake and I've read the tutorial. However I have a few questions. 1. How can I declare a CMakeLists file to create a project to build a DLL or static lib ? I assume if I build a DLL on windows, it will build as a shared lib on Linux 2. If my main source folder has 2 su

Re: [CMake] Copying some files using CMake

2010-12-23 Thread Stormwind Dev
Thanks for your reply John. There is one question left about your GetRuntime module. The files you copy are located within the CMake directory in your root source dir, right? Best Michael Am 23.12.2010 17:28, schrieb John Drescher: On Thu, Dec 23, 2010 at 11:18 AM, Stormwind Dev wrote

[CMake] Copying some files using CMake

2010-12-23 Thread Stormwind Dev
Dear List, I've got a question on copying some files from one directory to another using CMake. Let's say, I got some libraries collected in a special directory. I want CMake to copy these libs to the distribution directory of my project. Using add_custom_command, I managed to have CMake cop

[CMake] CTest failed to find the correct drop site

2009-10-02 Thread romain . jacquet . dev
Hi everybody, I'm currently having a problem using cmake and ctest. I have a project with test. The basic work cycle (cmake && make && make install && make test) is fine. But when I run ctest -D Experimental the test is launch but the files are submitting to the wrong dashboard (public.kitware.

Re: [CMake] add_test command in a sub-directory

2009-10-02 Thread romain . jacquet . dev
Selon "Nathaniel Waisbrot (Cont ARL/CISD)" : > Try moving the ENABLE_TESTING() call to the top-level CMakeLists.txt, > before any calls to add_subdirectory(). Add_test() can stay where it > is. Thanks it works perfectly. But the behavior of ENABLE_TESTING() is disturbing. I think it will be great

[CMake] add_test command in a sub-directory

2009-10-01 Thread romain . jacquet . dev
Hi everybody, I have found a strange behavior with CTest. I had a very simple projet with one test, which works perfectly. I have changed the architecture of my project. I have now a subdirectory. Now: CMakeLists.txt ->myDir/ ->myDir/*cpp ->myDir/*h ->myDir/CMakeLists.txt The idea behind is

Re: [CMake] [CPACK:rpm] Add library?

2009-06-30 Thread romain . jacquet . dev
Thanks for your answer. > I thought CPACK_PACKAGE_EXECUTABLES was for NSIS installer for adding > start menu entry: > http://www.vtk.org/Wiki/CMake:CPackConfiguration > > Is it used for something else? After reading the source code, I think you are right. It not used by the rpm generator. > >

[CMake] [CPACK:rpm] Add library?

2009-06-29 Thread romain . jacquet . dev
Hello everybody, I'm using cmake 2.6.4. I want to add externals libraries to aa rpm build with cmake/cpack. I have several questions: - Is there any library equivalent for CPACK_PACKAGE_EXECUTABLES? I expect that CPACK_PACKAGE_LIBRARY work, but it does not. - CPACK_INSTALL_DIR

[CMake] FindPkgConfig module on Windows

2009-02-09 Thread ehrhart . dev
Hello, I understand that the Findxxx() module (like FindBoost) is better than use of pkg-config file (particularly with cross compiling context), but pkg-config can be convenient. I've installed the pkg-config port on windows (from gnome.org) and it seems to work at a first glance. but I've got a p

[CMake] ADD_CUSTOM_TARGET options

2007-01-30 Thread Vasu Dev Dasari
Hello, I am new to cmake. I am working on a new project which includes integrating multiple projects and also develop couple of new software modules. Projects to be integrated say xyz, has its own makefile and can take multiple options not just "clean". I would like to develop a common cmake buil