mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 19:24:21 +00:00
07d9f9a6ec
must be under the `tools' subdirectory of the LLVM *source* tree. llvm-svn: 58180
27 lines
610 B
CMake
27 lines
610 B
CMake
macro(add_clang_library name)
|
|
add_library( ${name} ${ARGN} )
|
|
if( LLVM_COMMON_DEPENDS )
|
|
add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} )
|
|
endif( LLVM_COMMON_DEPENDS )
|
|
install(TARGETS ${name}
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib)
|
|
endmacro(add_clang_library)
|
|
|
|
macro(add_clang_executable name)
|
|
add_llvm_executable( ${name} ${ARGN} )
|
|
install(TARGETS ${name}
|
|
RUNTIME DESTINATION bin)
|
|
endmacro(add_clang_executable)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
)
|
|
|
|
add_definitions( -D_GNU_SOURCE )
|
|
|
|
add_subdirectory(lib)
|
|
add_subdirectory(Driver)
|
|
|
|
# TODO: docs.
|