cstool: support CMake

This commit is contained in:
Nguyen Anh Quynh 2016-10-11 16:50:51 +08:00
parent bab2a93031
commit eb34f6e478
3 changed files with 17 additions and 1 deletions

View File

@ -449,3 +449,5 @@ if (CAPSTONE_BUILD_SHARED)
LIBRARY DESTINATION lib LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib) ARCHIVE DESTINATION lib)
endif () endif ()
add_subdirectory(cstool)

14
cstool/CMakeLists.txt Normal file
View File

@ -0,0 +1,14 @@
# Cstool for Capstone disassembler engine.
# By Nguyen Anh Quynh, 2016
cmake_minimum_required(VERSION 2.8)
project(cstool)
include_directories("../include")
add_executable(cstool cstool.c)
target_link_libraries(cstool capstone)
install(TARGETS cstool DESTINATION bin)

View File

@ -1,4 +1,4 @@
# Sample Makefile for Capstone Disassembly Engine # Makefile for Cstool of Capstone Disassembly Engine
include ../functions.mk include ../functions.mk