commit | ae02bf1c5d15f9746c4187baa3a0510b0d87867b | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <aquynh@gmail.com> | Tue Oct 11 23:21:12 2016 +0800 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Tue Oct 11 23:24:15 2016 +0800 |
tree | 39f56a5f65b3a4795a7ae693a1839ad20b28bf16 | |
parent | 4834cd2700bc852baa30180f16701a4c79aee2fa [diff] [blame] |
cstool: compile with CMake using CMakeLists.txt in root dir
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ae0482..8749f30 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -389,4 +389,9 @@ ARCHIVE DESTINATION lib) endif () -add_subdirectory(cstool) +if (CAPSTONE_BUILD_SHARED) +add_executable(cstool "cstool/cstool.c") +target_link_libraries(cstool ${default-target}) + +install(TARGETS cstool DESTINATION bin) +endif ()