aboutsummaryrefslogtreecommitdiff
path: root/modules/ECMMarkNonGuiExecutable.cmake
blob: 3c199ab5dab0864b36d61d32687e3755c593169d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# - Function for marking executables as being non-gui
# This module provides the function ECM_MARK_NONGUI_EXECUTABLE().
#
# The ECM_MARK_NONGUI_EXECUTABLE function is used to indicate that an executable
# target should not be part of a MACOSX_BUNDLE, and should not be a WIN32_EXECUTABLE.
#
# ECM_MARK_NONGUI_EXECUTABLE( target1 target2 ... targetN )
#

function(ecm_mark_nongui_executable)
  foreach(_target ${ARGN})
    set_target_properties(${_target}
                            PROPERTIES
                            WIN32_EXECUTABLE FALSE
                            MACOSX_BUNDLE FALSE
                          )
  endforeach()
endfunction()