2004-01-22 18:51:34 +03:00
|
|
|
ADD_LIBRARY(jumpShared SHARED jumpShared.cxx)
|
|
|
|
|
|
|
|
IF(WIN32)
|
2004-04-02 18:43:35 +04:00
|
|
|
SET(SHARED_MUST_BE_IN_EXE_DIR 1)
|
|
|
|
ENDIF(WIN32)
|
|
|
|
|
|
|
|
IF(APPLE)
|
|
|
|
SET(SHARED_MUST_BE_IN_EXE_DIR 1)
|
|
|
|
ENDIF(APPLE)
|
|
|
|
|
|
|
|
IF(SHARED_MUST_BE_IN_EXE_DIR)
|
2004-01-22 18:51:34 +03:00
|
|
|
SET(LIB_NAME
|
|
|
|
${CMAKE_SHARED_LIBRARY_PREFIX}jumpShared${CMAKE_SHARED_LIBRARY_SUFFIX})
|
|
|
|
SET(EXE_DIR ${Jump_BINARY_DIR}/Executable)
|
|
|
|
IF(EXECUTABLE_OUTPUT_PATH)
|
|
|
|
SET(EXE_DIR ${EXECUTABLE_OUTPUT_PATH})
|
|
|
|
ENDIF(EXECUTABLE_OUTPUT_PATH)
|
2004-01-23 21:43:58 +03:00
|
|
|
SET(LIB_DIR ${Jump_BINARY_DIR}/Library/Shared)
|
2004-01-22 18:51:34 +03:00
|
|
|
IF(LIBRARY_OUTPUT_PATH)
|
|
|
|
SET(LIB_DIR ${LIBRARY_OUTPUT_PATH})
|
|
|
|
ENDIF(LIBRARY_OUTPUT_PATH)
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET jumpShared
|
|
|
|
POST_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy
|
|
|
|
${LIB_DIR}/${CMAKE_CFG_INTDIR}/${LIB_NAME}
|
|
|
|
${EXE_DIR}/${CMAKE_CFG_INTDIR}/${LIB_NAME})
|
2004-04-02 18:43:35 +04:00
|
|
|
ENDIF(SHARED_MUST_BE_IN_EXE_DIR)
|