Insert SET_BIN_DIR macro everywhere except Mod

This commit is contained in:
mdinger
2014-04-10 22:08:11 -04:00
committed by wmayer
parent d137a9ef05
commit 085736095e
7 changed files with 21 additions and 139 deletions

View File

@@ -177,19 +177,7 @@ add_library(FreeCADApp SHARED ${FreeCADApp_SRCS})
target_link_libraries(FreeCADApp ${FreeCADApp_LIBS})
# Note this is IDE specific, not necessarily platform specific
if(MSVC)
set_target_properties(FreeCADApp PROPERTIES DEBUG_OUTPUT_NAME "FreeCADAppD")
set_target_properties(FreeCADApp PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
# dirty hack to avoid Debug/Release subdirectory
set_target_properties(FreeCADApp PROPERTIES PREFIX "../")
elseif(MINGW)
set_target_properties(FreeCADApp PROPERTIES DEBUG_OUTPUT_NAME "FreeCADAppD")
set_target_properties(FreeCADApp PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
else(MSVC)
set_target_properties(FreeCADApp PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set_target_properties(FreeCADApp PROPERTIES INSTALL_RPATH ${INSTALL_RPATH})
endif(MSVC)
SET_BIN_DIR(FreeCADApp "FreeCADApp" "/bin")
if(WIN32)
INSTALL(TARGETS FreeCADApp