cstool: prepare for multiple C sources

This commit is contained in:
Nguyen Anh Quynh 2016-10-19 23:01:31 +08:00
parent e82a62cabe
commit 4e52d98ced

View File

@ -451,7 +451,8 @@ if (CAPSTONE_BUILD_SHARED)
endif ()
if (CAPSTONE_BUILD_SHARED)
add_executable(cstool "cstool/cstool.c")
FILE(GLOB CSTOOL_SRC cstool/*.c)
add_executable(cstool ${CSTOOL_SRC})
target_link_libraries(cstool ${default-target})
install(TARGETS cstool DESTINATION bin)