Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 1 | macro(add_clang_library name) |
| 2 | add_library( ${name} ${ARGN} ) |
| 3 | if( LLVM_COMMON_DEPENDS ) |
| 4 | add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} ) |
| 5 | endif( LLVM_COMMON_DEPENDS ) |
| 6 | install(TARGETS ${name} |
| 7 | LIBRARY DESTINATION lib |
| 8 | ARCHIVE DESTINATION lib) |
| 9 | endmacro(add_clang_library) |
| 10 | |
| 11 | macro(add_clang_executable name) |
| 12 | add_llvm_executable( ${name} ${ARGN} ) |
| 13 | install(TARGETS ${name} |
| 14 | RUNTIME DESTINATION bin) |
| 15 | endmacro(add_clang_executable) |
| 16 | |
| 17 | include_directories( |
| 18 | ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 19 | ) |
| 20 | |
| 21 | add_definitions( -D_GNU_SOURCE ) |
| 22 | |
| 23 | add_subdirectory(lib) |
| 24 | add_subdirectory(Driver) |
| 25 | |
| 26 | # TODO: docs. |