2020-11-27 13:10:09 +00:00
|
|
|
file(GLOB_RECURSE sources CONFIGURE_DEPENDS "*.cpp")
|
2020-11-27 17:21:19 +00:00
|
|
|
add_executable(pacman ${sources})
|
|
|
|
target_link_libraries(pacman libpacman)
|
2020-12-01 17:53:59 +00:00
|
|
|
|
2021-05-10 13:04:31 +00:00
|
|
|
set_target_properties(pacman
|
|
|
|
PROPERTIES
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2020-12-01 17:53:59 +00:00
|
|
|
#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)
|
|
|
|
#target_link_options(pacman PRIVATE /wholearchive:clang_rt.asan_dynamic-x86_64.lib /wholearchive:clang_rt.asan_dynamic_runtime_thunk-x86_64.lib)
|