Skip to content

Commit

Permalink
cstool: support CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Oct 11, 2016
1 parent 4568869 commit f7ff8f6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -388,3 +388,5 @@ if (CAPSTONE_BUILD_SHARED)
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
endif ()

add_subdirectory(cstool)
14 changes: 14 additions & 0 deletions cstool/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion cstool/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sample Makefile for Capstone Disassembly Engine
# Makefile for Cstool of Capstone Disassembly Engine

include ../functions.mk

Expand Down

0 comments on commit f7ff8f6

Please sign in to comment.