Hi I want to do a custom build based on the build type. I know how to define ADD_CUSTOM_COMMAND but I do not know how to run custom command selectively. Because the build type can be set on the fly, I am not sure if it is possible. Any comment will be appreciated. I am using CMake on Windows with Visual Studio 2005. Thanks Won-Ki