ERR: Fixed post-build rule to copy shared library correctly.
This commit is contained in:
parent
3a33f2c338
commit
f9a3f74d87
|
@ -3,7 +3,7 @@ ADD_LIBRARY(jumpShared SHARED jumpShared.cxx)
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
SET(LIB_NAME
|
SET(LIB_NAME
|
||||||
${CMAKE_SHARED_LIBRARY_PREFIX}jumpStatic${CMAKE_SHARED_LIBRARY_SUFFIX})
|
${CMAKE_SHARED_LIBRARY_PREFIX}jumpShared${CMAKE_SHARED_LIBRARY_SUFFIX})
|
||||||
SET(EXE_DIR ${Jump_BINARY_DIR}/Executable)
|
SET(EXE_DIR ${Jump_BINARY_DIR}/Executable)
|
||||||
IF(EXECUTABLE_OUTPUT_PATH)
|
IF(EXECUTABLE_OUTPUT_PATH)
|
||||||
SET(EXE_DIR ${EXECUTABLE_OUTPUT_PATH})
|
SET(EXE_DIR ${EXECUTABLE_OUTPUT_PATH})
|
||||||
|
@ -12,10 +12,8 @@ IF(WIN32)
|
||||||
IF(LIBRARY_OUTPUT_PATH)
|
IF(LIBRARY_OUTPUT_PATH)
|
||||||
SET(LIB_DIR ${LIBRARY_OUTPUT_PATH})
|
SET(LIB_DIR ${LIBRARY_OUTPUT_PATH})
|
||||||
ENDIF(LIBRARY_OUTPUT_PATH)
|
ENDIF(LIBRARY_OUTPUT_PATH)
|
||||||
ADD_CUSTOM_COMMAND(TARGET target
|
ADD_CUSTOM_COMMAND(TARGET jumpShared
|
||||||
POST_BUILD
|
POST_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy
|
||||||
COMMAND ${CMAKE_COMMAND}
|
|
||||||
ARGS -E copy
|
|
||||||
${LIB_DIR}/${CMAKE_CFG_INTDIR}/${LIB_NAME}
|
${LIB_DIR}/${CMAKE_CFG_INTDIR}/${LIB_NAME}
|
||||||
${EXE_DIR}/${CMAKE_CFG_INTDIR}/${LIB_NAME}
|
${EXE_DIR}/${CMAKE_CFG_INTDIR}/${LIB_NAME})
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
Loading…
Reference in New Issue