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

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