cstool: support CMake
This commit is contained in:
parent
bab2a93031
commit
eb34f6e478
|
@ -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)
|
||||||
|
|
|
@ -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)
|
|
@ -1,4 +1,4 @@
|
||||||
# Sample Makefile for Capstone Disassembly Engine
|
# Makefile for Cstool of Capstone Disassembly Engine
|
||||||
|
|
||||||
include ../functions.mk
|
include ../functions.mk
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue