blob: 791ed6fbd832bf99d29b9dff35a3a795d25b7123 [file] [log] [blame]
Edward O'Callaghand9046352009-08-03 01:08:25 +00001# See docs/CMake.html for instructions about how to build Compiler-RT with CMake.
2
Edward O'Callaghan880cafc2009-08-03 02:15:06 +00003PROJECT( CompilerRT )
4CMAKE_MINIMUM_REQUIRED( VERSION 2.6 )
Edward O'Callaghand9046352009-08-03 01:08:25 +00005
6set(PACKAGE_NAME compiler-rt)
7set(PACKAGE_VERSION 1.0svn)
8set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
9set(PACKAGE_BUGREPORT "llvmbugs@cs.uiuc.edu")
10
Edward O'Callaghan6c307f02009-08-03 05:59:48 +000011SET( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules )
12
13# Disallow in-source build
14INCLUDE( MacroEnsureOutOfSourceBuild )
15MACRO_ENSURE_OUT_OF_SOURCE_BUILD(
16 "${PROJECT_NAME} requires an out of source build. Please create a separate build directory and run 'cmake /path/to/${PROJECT_NAME} [options]' there."
17 )
Edward O'Callaghand9046352009-08-03 01:08:25 +000018
19install(DIRECTORY include
20 DESTINATION .
21 PATTERN ".svn" EXCLUDE
22 PATTERN "*.cmake" EXCLUDE
23 PATTERN "*.in" EXCLUDE
24 )
25
26# BlocksRuntime - some random cruft that got thrown in at the last minute, ignoring for now.
27# ADD_SUBDIRECTORY( BlocksRuntime )
28ADD_SUBDIRECTORY( lib )
29# Tests are being ignored for until the very basics are working.
30# ADD_SUBDIRECTORY( test )
31
Edward O'Callaghan6c307f02009-08-03 05:59:48 +000032INCLUDE( ConfigureChecks.cmake )
33CONFIGURE_FILE( config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )