Commit f4bdd052 authored by David Partyka's avatar David Partyka
Browse files

Refactor VTK_ADD_EXECUTABLE macro to build forwarding executables.

Only if VTK_BUILD_FORWARDING_EXECUTABLES is ON.

Change-Id: Ie21825f6b44a8dc7a4767de941c2ae025f31446b
parent 446d82b9
......@@ -3,11 +3,16 @@ if(NOT VTK_INSTALL_EXPORT_NAME)
endif()
MACRO(VTK_ADD_LIBRARY name)
ADD_LIBRARY(${name} ${ARGN})
SET_PROPERTY(GLOBAL APPEND PROPERTY VTK_TARGETS ${name})
add_library(${name} ${ARGN})
set_property(GLOBAL APPEND PROPERTY VTK_TARGETS ${name})
ENDMACRO(VTK_ADD_LIBRARY)
MACRO(VTK_ADD_EXECUTABLE name)
ADD_EXECUTABLE(${name} ${ARGN})
SET_PROPERTY(GLOBAL APPEND PROPERTY VTK_TARGETS ${name})
if(UNIX AND VTK_BUILD_FORWARDING_EXECUTABLES)
add_executable_with_forwarding(VTK_EXE_SUFFIX ${name} ${ARGN})
set_property(GLOBAL APPEND PROPERTY VTK_TARGETS ${name})
else()
add_executable(${name} ${ARGN})
set_property(GLOBAL APPEND PROPERTY VTK_TARGETS ${name})
endif()
ENDMACRO(VTK_ADD_EXECUTABLE)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment