Re: [CMake] Announcing a (potential) new CMake project!

2015-02-03 Thread jmerkow
I would love a place to learn more about CMake design patterns and paradigms. The CMake documentation is very good, and the Cmake website has a good tutorial to get people started with a simple project. However, there are a lot of commonly used design patterns out there that aren't explained an

Re: [CMake] CMake - Error in configuration process, project files may be invalid

2014-11-03 Thread jmerkow
It looks like you don't have a CXX compiler. Make sure that visual studio is installed properly, with C++ compilers. -Jameson -- View this message in context: http://cmake.3232098.n2.nabble.com/CMake-Error-in-configuration-process-project-files-may-be-invalid-tp7588925p7588930.html Sent from

[CMake] ExternalProjectDependency (artichoke) and ctest

2014-11-03 Thread jmerkow
Hello, My project is using ExternalProjectDependency from [1]. I know that is not a kitware/cmake project, but I thought Id ask here anyway I have been using testing (ctest) with it by adding tests in the top level build with hard-coded directories and names (these targets aren't built until t

Re: [CMake] file(UPLOAD what does it support?

2014-10-22 Thread jmerkow
Sure. I can take this on. Looks like the ifdefs are there and the cmakedefines are all setup I believe that libssh2 is standard on linux and osx. What about windows is it even available on windows? -Jameson -- View this message in context: http://cmake.3232098.n2.nabble.com/file-UPLOAD-w

Re: [CMake] file(UPLOAD what does it support?

2014-10-22 Thread jmerkow
So Im most likely out of luck, unless I want to compile cmake myself with those flags on... Is there anyway to know which protocols will work with the standard cmake packages? Besides systematically trying each one... Basically we have a linux machine that we want to put nightly files on after ctes

Re: [CMake] file(UPLOAD what does it support?

2014-10-22 Thread jmerkow
I have tried this on linux using 2.8.12, and on windows 7 with 3.0.2. Both pre-built from http://cmake.org/ Both give the same error. -Jameson -- View this message in context: http://cmake.3232098.n2.nabble.com/file-UPLOAD-what-does-it-support-tp7588715p7588786.html Sent from the CMake mailing

Re: [CMake] file(UPLOAD what does it support?

2014-10-22 Thread jmerkow
Sorry for the delayed response. Im trying to use sftp. To test it out, I am doing something like: file(WRITE upload.txt "testing upload") file(UPLOAD upload.txt sftp://user:pass@server:/path/on/server STATUS status SHOW_PROGRESS) message("STATUS ${status}") The status is STATUS 1;"unsupported

[CMake] file(UPLOAD what does it support?

2014-10-09 Thread jmerkow
Hello, I am trying to use file(UPLOAD. The documentation [1] is a little lacking on what types of uploading it supports. Is there a wiki or example page somewhere that goes over whats supported and how to use it? -Jameson [1] http://www.cmake.org/cmake/help/v3.0/command/file.html?highlight=UP

Re: [CMake] CPack DragNDrop, adding an additional file to DMG

2014-09-25 Thread jmerkow
Yes. Im actually using the Bundle generator. We don't use bundle when compiling. We only use bundles to launch for the binaries. DESTINATION "." points to Contents/Resources/ in this case. -Jameson -- View this message in context: http://cmake.3232098.n2.nabble.com/CPack-DragNDrop-adding

[CMake] CPack DragNDrop, adding an additional file to DMG

2014-09-25 Thread jmerkow
Using CPack is it possible to add an additional file to the DMG? Many DMGs accompany their bundles with readme's or other files. I haven't found anything in the documentation to accomplish this. -Jameson -- View this message in context: http://cmake.3232098.n2.nabble.com/CPack-DragNDrop-addi

Re: [CMake] CPack WIX examples

2014-09-25 Thread jmerkow
Thanks a lot this worked! Are there any plans to add the functionality for adding registry entries into the WIX xml directly? Looking at the source code, it looks like it would be somewhat painless. If no one is already working on this, I'll work on contributing the code myself, in the near futur

Re: [CMake] CPack WIX examples

2014-09-24 Thread jmerkow
I forgot to mention that I double checked that this particular code was being executed. I started changing the name (and adding a time stamp) to the msi in the same section of code to double check. Here is it is (its at send of my code for cpack): ... if(WIN32) if(MSVC) se

Re: [CMake] CPack WIX examples

2014-09-24 Thread jmerkow
Ok, I've double checked everything and I'm not sure whats going on. I was looking in files.wxs (in _CPack_Packages/win64/WIX) for the component ID, and i've tried a few different ones. I also dropped the config file step and used your example patch.xml: Still nothing added when I se

Re: [CMake] CPack WIX examples

2014-09-24 Thread jmerkow
Ok I'm going the fragment injection route, but having some issues. So I found the component id for the target that these registry values will be needed by in files.wxs: In this case its 'CMP_ID_1', using the first cmp id seemed like a safe bet in general to have it referenced by a feature. S

Re: [CMake] CPack WIX examples

2014-09-23 Thread jmerkow
Thanks a lot for your help! Those examples are excellent. I have a follow up questions for creating the installer, though. We have a number of registry entries that need to be created for the software to run in 'release mode'. In our current system we add registry entries into the wxs, but I don

[CMake] CPack WIX examples

2014-09-23 Thread jmerkow
Hello I am working on creating an msi installer using cpack with the WIX installer (converting from old system). Im having some trouble finding some good resources to do this. My project needs to set a number of registry entries. We have a few components, and licenses that are installed along wi

Re: [CMake] Question regarding External Project add and VTK

2014-08-08 Thread jmerkow
Ahh, I believe I answered my own question. There seems to be a new function, ExternalProject_Install_CMake, Im testing it out now. Thanks! -Jameson On Thu, Aug 7, 2014 at 2:19 PM, jmerkow [via CMake] < ml-node+s3232098n7588095...@n2.nabble.com> wrote: > Jc, > > I guess I spoke

Re: [CMake] Question regarding External Project add and VTK

2014-08-07 Thread jmerkow
Jc, I guess I spoke too soon on my 'last question.' How does make install work with this superbuild system. Looking at slicer and ctk, they seem to set INSTALL_COMMAND to "" in their superbuild.cmake, but presumably these packages still install even with superbuild mode on. Can you offer any adv

Re: [CMake] Question regarding External Project add and VTK

2014-06-19 Thread jmerkow
Jc, Thank you! This is what Im looking for. I've been having some trouble with these paths in other places too ([1]), but haven't had the time to go back and redo it. -Jameson [1] http://cmake.3232098.n2.nabble.com/CMAKE-RUNTIME-OUTPUT-DIRECTORY-inconsistent-between-make-and-Xcode-td7586922.ht

Re: [CMake] Confusion regarding usage of find_package and PATHS or HINTS

2014-06-19 Thread jmerkow
Jc, That is precisely what I do for superbuild. This applies to non superbuilds, its also helpful if we are running on a cluster, supercomputers or machines that it is difficult to access the web (though superbuild URLs can be local paths too). Its also helpful for people running multiple version

Re: [CMake] Question regarding External Project add and VTK

2014-06-15 Thread jmerkow
Ok I have one final question. One of the project is built using CMake but does not contain a config file. On unix systems (make file based generators) it works fantastic, but with windows (and I presume xcode), the libraries are output to the buildtype directory. i.e. Debug/ or Release/. I can a

Re: [CMake] Confusion regarding usage of find_package and PATHS or HINTS

2014-06-10 Thread jmerkow
I'm not the author of the libraries, and none of them are cmake friendly. So it doesn't make sense to create FOOconfig.cmake files for them. Using the command line -D or adding env variables to add new search directories, seems like an unnecessary headache for the user (our windows users esp would

Re: [CMake] Confusion regarding usage of find_package and PATHS or HINTS

2014-06-10 Thread jmerkow
Basically, the scenario I'm using this is when libraries are in some unknown location, but the location can be set during the configure step. In our case we have a number of external libraries that aren't (and shouldn't be) installed, so there not going to be in any of the standard locations (I.e

Re: [CMake] Confusion regarding usage of find_package and PATHS or HINTS

2014-06-10 Thread jmerkow
Is there a generally accepted method to pass extra paths to find_package in module mode? To get around this, I have been doing something like this: set(FOO_EXTRA_PATHS path1 path2) Find_package(FOO) In FindFOO.cmake: ... set(FOO_LIB_POSSIBLE_PATHS ${FOO_EXTRA_PATHS} /path3/) ... (Use the possib

Re: [CMake] Question regarding External Project add and VTK

2014-06-08 Thread jmerkow
Ok, So I've converted my project to a super build system with ExternalProjectDependency. I ended up going through and re writing most of my project (most of it was written while I was learning CMake and was pretty ugly). It is extremely useful. It seems that superbuilds are very popular, it seems

Re: [CMake] Question regarding External Project add and VTK

2014-06-03 Thread jmerkow
Jc, Im been updating my CMakeLists.txt to do this superbuild. But I am running into an error. Im not sure why... My project is something like the following: cmake_minimum_required(VERSION 2.8.8) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake"

Re: [CMake] Question regarding External Project add and VTK

2014-06-02 Thread jmerkow
Jc, Thanks a lot this may be exactly what I am looking for. Basically I include ExternalProjectDependency in my project, then mark_as_superbuild() options/vars that I want to pass back to the 'normal' build. Add the external project with 'CMAKE_CACHE_ARGS' and this will pass those variables to

Re: [CMake] Question regarding External Project add and VTK

2014-06-02 Thread jmerkow
I see, that makes a lot of sense. And in order to pass options from the 'superbuild' build to the 'normal' build you make them options as command line args in your ExternalProhect_Add command? i.e.: set( proj my_prog ) ExternalProject_Add( ${proj} DOWNLOAD_COMMAND "" SOURCE_DIR "${${p

[CMake] Question regarding External Project add and VTK

2014-06-02 Thread jmerkow
Hello, I want to add VTK as an external project, but I have a few questions. Looking online at examples of other projects using vtk as an external project, many of them use a 'superbuild' style technique (example here from the archives: [1]). By that I mean that they have some option to enable

Re: [CMake] CMAKE_RUNTIME_OUTPUT_DIRECTORY inconsistent between make and Xcode

2014-03-09 Thread jmerkow
I am having a similar issue. I generate a number of scripts I configure with the path to the executables. This path is the same when using make, but with XCode or MSVSC they append the build type (Debug, Release, RelWithDebInfo, etc). Bascially, this script sets a number of env variables, and a

[CMake] Linking intel (icpc/icc) compiled libraries with gnu (g++/gcc/ar) compiled targets

2014-01-27 Thread jmerkow
Hello, I am working on migrating from for an established project make to cmake, and I have an interesting problem. Some of the precompiled libraries are compiled using intel compilers and some are compiled using g++. Since icc is licensed and harder to get we have been using g++ and linking with

[CMake] Linking with intel (icc/icpc) VTK libraries using gnu (g++/ar)

2014-01-27 Thread jmerkow
Hello, I am working on migrating from for an established project make to cmake, and I have an interesting problem. Some of the precompiled libraries are compiled using intel compilers and some are compiled using g++. Since icc is licensed and harder to get we have been using g++ and linking with

[CMake] Configure_file, permission denied

2014-01-23 Thread jmerkow
I am trying to use configure_file but I get a permissions denied error. Code: configure_file(${TestProj_SOURCE_DIR}/CMake/developer-core-script.in ${TestProj_BIN_DIR}/mysim) Error: CMake Error: Could not open file for write in copy operation /mysim.tmp CMake Error: : System Error: Permission deni

Re: [CMake] CMAKE OS X fortran bug?

2014-01-17 Thread jmerkow
Yes, that works. It just seemed a little funky that CMake would generate names based on a predefined capitalization (i.e. CXX, Fortran, C etc), then check using the capitalization in the parameter(I texted cxx as well). I figured I would bring this to the mailing list attention, maybe save some h

[CMake] CMAKE OS X fortran bug?

2014-01-17 Thread jmerkow
Hello, I am working on converting an older project to CMake. Right now, I am getting all the variables and flags in order from the Makefiles to make sure that CMake will work for our project. And I ran across something that maybe a bug. I am using fortran in this project, so I wanted to enable t

[CMake] simple program, os x library archive error, linux no issues

2013-11-11 Thread jmerkow
Hello I am developing a few simple programs that use ITK/VTK. I am making a few image filters for ITK and I have some test .cxx files to test them out. This process is going smoothly except that 'make' returns an error when I use it on OS X. here is the error: Scanning dependencies of target Le