From af03c13a97d44f0fc698aeb1c91eac65d2eb20a4 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Mon, 10 May 2021 15:04:31 +0200 Subject: [PATCH] Put pacman binary in the same directory as the assets --- src/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 08ed640..b883ad8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,6 +2,12 @@ file(GLOB_RECURSE sources CONFIGURE_DEPENDS "*.cpp") add_executable(pacman ${sources}) target_link_libraries(pacman libpacman) +set_target_properties(pacman + PROPERTIES + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" +) + + #target_compile_options(pacman PRIVATE -fsanitize=address) # /MD will be used implicitly #target_link_directories(pacman PRIVATE "$ENV{ProgramFiles\(x86\)}/Microsoft Visual Studio/2019/Community/VC/Tools/Llvm/x64/lib/clang/10.0.0/lib/windows") #target_link_libraries(pacman PRIVATE libpacman clang_rt.asan_dynamic-x86_64 clang_rt.asan_dynamic_runtime_thunk-x86_64)