Skip to content

Commit

Permalink
Merge branch 'v3' of https://github.com/aquynh/capstone into v3
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed May 8, 2015
2 parents 3dd6416 + 926327d commit 77ff056
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,19 @@ set(HEADERS_ENGINE
include/platform.h
)

set(HEADERS_COMMON
include/arm64.h
include/arm.h
include/capstone.h
include/mips.h
include/ppc.h
include/x86.h
include/sparc.h
include/systemz.h
include/xcore.h
include/platform.h
)


set(TEST_SOURCES test.c test_detail.c test_skipdata.c test_iter.c)

Expand Down Expand Up @@ -272,6 +285,7 @@ set(ALL_SOURCES
)

set(ALL_HEADERS
${HEADERS_COMMON}
${HEADERS_ENGINE}
${HEADERS_ARM}
${HEADERS_ARM64}
Expand Down Expand Up @@ -348,6 +362,7 @@ source_group("Source\\SystemZ" FILES ${SOURCES_SYSZ})
source_group("Source\\X86" FILES ${SOURCES_X86})
source_group("Source\\XCore" FILES ${SOURCES_XCORE})

source_group("Include\\Common" FILES ${HEADERS_COMMON})
source_group("Include\\Engine" FILES ${HEADERS_ENGINE})
source_group("Include\\ARM" FILES ${HEADERS_ARM})
source_group("Include\\ARM64" FILES ${HEADERS_ARM64})
Expand All @@ -359,10 +374,7 @@ source_group("Include\\X86" FILES ${HEADERS_X86})
source_group("Include\\XCore" FILES ${HEADERS_XCORE})

## installation
set(INCLUDES arm64.h arm.h capstone.h mips.h ppc.h x86.h sparc.h systemz.h xcore.h platform.h)
foreach (INC ${INCLUDES})
install(FILES "include/${INC}" DESTINATION include/capstone)
endforeach ()
install(FILES ${HEADERS_COMMON} DESTINATION include/capstone)

if (CAPSTONE_BUILD_STATIC)
install(TARGETS capstone-static
Expand Down

0 comments on commit 77ff056

Please sign in to comment.