..

DCMAKE_BUILD_TYPE

cmake分别编译不同的target1

cmake -DCMAKE_BUILD_TYPE=Release ..
cmake -DCMAKE_BUILD_TYPE=Debug ..