[CMake] Multiple Executables for every target in Xcode

Michael Jackson mike.jackson at bluequartz.net
Tue Oct 6 09:14:41 EDT 2015


hello list, 
   I am running Xcode (5 & 6) and using CMake to generate the Xcode project files. We have a lot of targets for our project and we were looking into ways of refactoring the Cmake codes in order to reduce the number of targets. For example we have a lot of plugins that we compile and each plugin is its own "project()" command. One of the things that we have noticed is that just about every "add_executable()" command results in 2 executable targets in the generated Xcode project. I was just wondering if anyone has seen anything like this. We are using CMake 3.3.1 on OS X (10.8/10.9/10.10).

Thanks
Mike Jackson



More information about the CMake mailing list