[CMake] Including source files generated by a cmake project with ExternalProject_Add in an IDE

2013-07-11 Thread Aaron Nowack
Hi, I have two cmake projects named projectA and projectB. projectA includes projectB via ExternalProject_add which uses the SOURCE_DIR and CMAKE_ARGS flags to build and have tell projectB where to put the compiled libraries that projectA requires. I like using IDEs like codeblocks and when I open

[CMake] Mac: libtool -static instead of ar + ranlib

2013-07-11 Thread James Bigler
Is there a way to use libtool -static instead of ar + ranlib? I'm running into some situations where ar + ranlib are generating errors where libtool -static does not. Basically I have a tool that generates object files (CUDA), but it can only do so for a single architecture at a time. If I build