Translate the cmake target type into the CodeBlocks target type id
| 695 | |
| 696 | // Translate the cmake target type into the CodeBlocks target type id |
| 697 | int cmExtraCodeBlocksGenerator::GetCBTargetType(cmGeneratorTarget* target) |
| 698 | { |
| 699 | switch (target->GetType()) { |
| 700 | case cmStateEnums::EXECUTABLE: |
| 701 | if ((target->IsWin32Executable( |
| 702 | target->Makefile->GetSafeDefinition("CMAKE_BUILD_TYPE"))) || |
| 703 | (target->GetPropertyAsBool("MACOSX_BUNDLE"))) { |
| 704 | return 0; |
| 705 | } |
| 706 | return 1; |
| 707 | case cmStateEnums::STATIC_LIBRARY: |
| 708 | case cmStateEnums::OBJECT_LIBRARY: |
| 709 | return 2; |
| 710 | case cmStateEnums::SHARED_LIBRARY: |
| 711 | case cmStateEnums::MODULE_LIBRARY: |
| 712 | return 3; |
| 713 | default: |
| 714 | return 4; |
| 715 | } |
| 716 | } |
| 717 | |
| 718 | // Create the command line for building the given target using the selected |
| 719 | // make |
no test coverage detected