summaryrefslogtreecommitdiffstats
path: root/Tests/Jump/Library/CMakeLists.txt
blob: 31398007fdc282ebb87d05fe4b21db6ccff179fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ADD_LIBRARY(jumpStatic STATIC jumpStatic.cxx)
ADD_LIBRARY(jumpShared SHARED jumpShared.cxx)

IF(WIN32)
  SET(LIB_NAME
    ${CMAKE_SHARED_LIBRARY_PREFIX}jumpStatic${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)
  SET(LIB_DIR ${Jump_BINARY_DIR}/Library)
  IF(LIBRARY_OUTPUT_PATH)
    SET(LIB_DIR ${LIBRARY_OUTPUT_PATH})
  ENDIF(LIBRARY_OUTPUT_PATH)
  ADD_CUSTOM_COMMAND(TARGET target
    POST_BUILD
    COMMAND ${CMAKE_COMMAND}
    ARGS -E copy
    ${LIB_DIR}/${CMAKE_CFG_INTDIR}/${LIB_NAME}
    ${EXE_DIR}/${CMAKE_CFG_INTDIR}/${LIB_NAME}
ENDIF(WIN32)