Skip to content
Permalink
Browse files

CMake: Adjusted post build commands

  • Loading branch information...
Dax89 committed May 12, 2019
1 parent 04a8b2d commit 0e7b8d33102536f3d30e38ea00aae75962679bdb
Showing with 2 additions and 10 deletions.
  1. +2 −10 CMakeLists.txt
@@ -135,15 +135,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-missing-braces)
endif()

if(WIN32)
set(LIB_REDASM_BIN ${CMAKE_BINARY_DIR}/LibREDasm/LibREDasm.dll)
elseif(APPLE)
set(LIB_REDASM_BIN ${CMAKE_BINARY_DIR}/LibREDasm/LibREDasm.dylib)
else()
set(LIB_REDASM_BIN ${CMAKE_BINARY_DIR}/LibREDasm/LibREDasm.so)
endif()

# Post build commands
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${LIB_REDASM_BIN} ${CMAKE_BINARY_DIR})
set(LIBREDASM_BIN ${CMAKE_BINARY_DIR}/LibREDasm/LibREDasm${CMAKE_SHARED_LIBRARY_SUFFIX})
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${LIBREDASM_BIN} ${CMAKE_BINARY_DIR})

0 comments on commit 0e7b8d3

Please sign in to comment.
You can’t perform that action at this time.