Commit 4577e486 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

Introduce ACG_COMMON_DO_NOT_COPY_POST_BUILD

parent 7fe90a54
......@@ -741,6 +741,7 @@ function (acg_add_executable _target)
# set common target properties defined in common.cmake
acg_set_target_props (${_target})
if (NOT ACG_COMMON_DO_NOT_COPY_POST_BUILD)
if (WIN32)
# copy exe file to "Build" directory
# Visual studio will create this file in a subdirectory so we can't use
......@@ -757,6 +758,7 @@ function (acg_add_executable _target)
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${_target}
${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_BINDIR}/${_target})
endif ()
endif()
if (NOT ACG_PROJECT_MACOS_BUNDLE OR NOT APPLE)
install (TARGETS ${_target} DESTINATION ${ACG_PROJECT_BINDIR})
endif ()
......@@ -798,6 +800,7 @@ function (acg_add_library _target _libtype)
set( postfix $<IF:$<CONFIG:Debug>,${CMAKE_DEBUG_POSTFIX},"">)
set( fullname ${_target}${postfix} )
if (NOT ACG_COMMON_DO_NOT_COPY_POST_BUILD)
if (WIN32)
# copy exe file to "Build" directory
# Visual studio will create this file in a subdirectory so we can't use
......@@ -869,6 +872,7 @@ function (acg_add_library _target _libtype)
${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_LIBDIR}/lib${fullname}.a)
endif ()
endif()
# Block installation of libraries by setting ACG_NO_LIBRARY_INSTALL
......
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