Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 1 | # See www/CMake.html for instructions on how to build libcxx with CMake. |
| 2 | |
| 3 | #=============================================================================== |
| 4 | # Setup Project |
| 5 | #=============================================================================== |
| 6 | |
| 7 | project(libcxx CXX C) |
| 8 | cmake_minimum_required(VERSION 2.8) |
| 9 | |
| 10 | set(PACKAGE_NAME libcxx) |
| 11 | set(PACKAGE_VERSION trunk-svn) |
| 12 | set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") |
| 13 | set(PACKAGE_BUGREPORT "llvmbugs@cs.uiuc.edu") |
| 14 | |
| 15 | # Add path for custom modules |
| 16 | set(CMAKE_MODULE_PATH |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 17 | "${CMAKE_CURRENT_SOURCE_DIR}/cmake" |
| 18 | "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules" |
Alexey Samsonov | 179fa78 | 2013-09-30 09:10:01 | [diff] [blame] | 19 | ${CMAKE_MODULE_PATH} |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 20 | ) |
| 21 | |
| 22 | # Require out of source build. |
| 23 | include(MacroEnsureOutOfSourceBuild) |
| 24 | MACRO_ENSURE_OUT_OF_SOURCE_BUILD( |
| 25 | "${PROJECT_NAME} requires an out of source build. Please create a separate |
| 26 | build directory and run 'cmake /path/to/${PROJECT_NAME} [options]' there." |
| 27 | ) |
| 28 | |
Peter Collingbourne | 4c81b00 | 2013-10-03 21:58:25 | [diff] [blame] | 29 | if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) |
| 30 | set(LIBCXX_BUILT_STANDALONE 1) |
| 31 | endif() |
| 32 | |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 33 | #=============================================================================== |
| 34 | # Setup CMake Options |
| 35 | #=============================================================================== |
| 36 | |
| 37 | # Define options. |
| 38 | option(LIBCXX_ENABLE_EXCEPTIONS "Use exceptions." ON) |
| 39 | option(LIBCXX_ENABLE_RTTI "Use run time type information." ON) |
| 40 | option(LIBCXX_ENABLE_ASSERTIONS "Enable assertions independent of build mode." ON) |
| 41 | option(LIBCXX_ENABLE_PEDANTIC "Compile with pedantic enabled." ON) |
| 42 | option(LIBCXX_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF) |
| 43 | option(LIBCXX_ENABLE_CXX0X "Enable -std=c++0x and use of c++0x language features if the compiler supports it." ON) |
| 44 | option(LIBCXX_ENABLE_SHARED "Build libc++ as a shared library." ON) |
Michael Gottesman | c64c980 | 2013-09-02 07:28:05 | [diff] [blame] | 45 | option(LIBCXX_INSTALL_SUPPORT_HEADERS "Install libc++ support headers." ON) |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 46 | |
Peter Collingbourne | d0d308f | 2013-10-06 22:13:19 | [diff] [blame] | 47 | set(CXXABIS none libcxxabi libcxxrt libstdc++ libsupc++) |
Michael J. Spencer | db8a030 | 2012-12-31 19:34:21 | [diff] [blame] | 48 | if (NOT DEFINED LIBCXX_CXX_ABI) |
| 49 | set(LIBCXX_CXX_ABI "none") |
| 50 | endif() |
Michael J. Spencer | a358fbe | 2012-11-30 21:02:29 | [diff] [blame] | 51 | set(LIBCXX_CXX_ABI "${LIBCXX_CXX_ABI}" CACHE STRING |
| 52 | "Specify C++ ABI library to use." FORCE) |
Howard Hinnant | 9c07b14 | 2013-08-19 21:42:07 | [diff] [blame] | 53 | set_property(CACHE LIBCXX_CXX_ABI PROPERTY STRINGS ;${CXXABIS}) |
Michael J. Spencer | a358fbe | 2012-11-30 21:02:29 | [diff] [blame] | 54 | |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 55 | #=============================================================================== |
| 56 | # Configure System |
| 57 | #=============================================================================== |
| 58 | |
| 59 | # Get triples. |
| 60 | include(GetTriple) |
| 61 | get_host_triple(LIBCXX_HOST_TRIPLE |
| 62 | LIBCXX_HOST_ARCH |
| 63 | LIBCXX_HOST_VENDOR |
| 64 | LIBCXX_HOST_OS |
| 65 | ) |
| 66 | set(LIBCXX_HOST_TRIPLE ${LIBCXX_HOST_TRIPLE} CACHE STRING "Host triple.") |
| 67 | get_target_triple(LIBCXX_TARGET_TRIPLE |
| 68 | LIBCXX_TARGET_ARCH |
| 69 | LIBCXX_TARGET_VENDOR |
| 70 | LIBCXX_TARGET_OS |
| 71 | ) |
| 72 | set(LIBCXX_TARGET_TRIPLE ${LIBCXX_TARGET_TRIPLE} CACHE STRING "Target triple.") |
| 73 | |
Howard Hinnant | b85dea3 | 2013-02-08 19:04:53 | [diff] [blame] | 74 | #=============================================================================== |
| 75 | # Add an ABI library if appropriate |
| 76 | #=============================================================================== |
| 77 | |
| 78 | # |
| 79 | # _setup_abi: Set up the build to use an ABI library |
| 80 | # |
| 81 | # Parameters: |
| 82 | # abidefines: A list of defines needed to compile libc++ with the ABI library |
| 83 | # abilibs : A list of libraries to link against |
| 84 | # abifiles : A list of files (which may be relative paths) to copy into the |
| 85 | # libc++ build tree for the build. These files will also be |
| 86 | # installed alongside the libc++ headers. |
| 87 | # abidirs : A list of relative paths to create under an include directory |
| 88 | # in the libc++ build directory. |
| 89 | # |
| 90 | macro(setup_abi_lib abipathvar abidefines abilibs abifiles abidirs) |
| 91 | list(APPEND LIBCXX_CXX_FEATURE_FLAGS ${abidefines}) |
| 92 | set(${abipathvar} "${${abipathvar}}" |
David Fang | 44ead61 | 2014-06-24 20:32:11 | [diff] [blame^] | 93 | CACHE PATH |
| 94 | "Paths to C++ ABI header directories separated by ';'." FORCE |
Howard Hinnant | b85dea3 | 2013-02-08 19:04:53 | [diff] [blame] | 95 | ) |
| 96 | set(LIBCXX_CXX_ABI_LIBRARIES ${abilibs}) |
| 97 | set(LIBCXX_ABILIB_FILES ${abifiles}) |
David Fang | 44ead61 | 2014-06-24 20:32:11 | [diff] [blame^] | 98 | |
Michael J. Spencer | db8a030 | 2012-12-31 19:34:21 | [diff] [blame] | 99 | file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/include") |
Howard Hinnant | b85dea3 | 2013-02-08 19:04:53 | [diff] [blame] | 100 | foreach(_d ${abidirs}) |
| 101 | file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/include/${_d}") |
| 102 | endforeach() |
David Fang | 44ead61 | 2014-06-24 20:32:11 | [diff] [blame^] | 103 | |
Howard Hinnant | b85dea3 | 2013-02-08 19:04:53 | [diff] [blame] | 104 | foreach(fpath ${LIBCXX_ABILIB_FILES}) |
Michael J. Spencer | a358fbe | 2012-11-30 21:02:29 | [diff] [blame] | 105 | set(found FALSE) |
Howard Hinnant | b85dea3 | 2013-02-08 19:04:53 | [diff] [blame] | 106 | foreach(incpath ${${abipathvar}}) |
| 107 | if (EXISTS "${incpath}/${fpath}") |
Michael J. Spencer | a358fbe | 2012-11-30 21:02:29 | [diff] [blame] | 108 | set(found TRUE) |
Howard Hinnant | b85dea3 | 2013-02-08 19:04:53 | [diff] [blame] | 109 | get_filename_component(dstdir ${fpath} PATH) |
| 110 | get_filename_component(ifile ${fpath} NAME) |
David Fang | 44ead61 | 2014-06-24 20:32:11 | [diff] [blame^] | 111 | file(COPY "${incpath}/${fpath}" |
| 112 | DESTINATION "${CMAKE_BINARY_DIR}/include/${dstdir}" |
Michael J. Spencer | a358fbe | 2012-11-30 21:02:29 | [diff] [blame] | 113 | ) |
David Fang | 44ead61 | 2014-06-24 20:32:11 | [diff] [blame^] | 114 | list(APPEND abilib_headers "${CMAKE_BINARY_DIR}/include/${fpath}") |
Michael J. Spencer | a358fbe | 2012-11-30 21:02:29 | [diff] [blame] | 115 | endif() |
| 116 | endforeach() |
| 117 | if (NOT found) |
Howard Hinnant | b85dea3 | 2013-02-08 19:04:53 | [diff] [blame] | 118 | message(FATAL_ERROR "Failed to find ${fpath}") |
Michael J. Spencer | a358fbe | 2012-11-30 21:02:29 | [diff] [blame] | 119 | endif() |
| 120 | endforeach() |
David Fang | 44ead61 | 2014-06-24 20:32:11 | [diff] [blame^] | 121 | |
| 122 | add_custom_target(LIBCXX_CXX_ABI_DEPS DEPENDS ${abilib_headers}) |
Michael J. Spencer | a358fbe | 2012-11-30 21:02:29 | [diff] [blame] | 123 | include_directories("${CMAKE_BINARY_DIR}/include") |
David Fang | 44ead61 | 2014-06-24 20:32:11 | [diff] [blame^] | 124 | |
| 125 | install(FILES ${abilib_headers} |
Michael J. Spencer | a358fbe | 2012-11-30 21:02:29 | [diff] [blame] | 126 | DESTINATION include/c++/v1 |
David Fang | 44ead61 | 2014-06-24 20:32:11 | [diff] [blame^] | 127 | PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ |
Michael J. Spencer | a358fbe | 2012-11-30 21:02:29 | [diff] [blame] | 128 | ) |
Howard Hinnant | b85dea3 | 2013-02-08 19:04:53 | [diff] [blame] | 129 | endmacro() |
| 130 | |
Peter Collingbourne | d0d308f | 2013-10-06 22:13:19 | [diff] [blame] | 131 | if ("${LIBCXX_CXX_ABI}" STREQUAL "libstdc++" OR |
| 132 | "${LIBCXX_CXX_ABI}" STREQUAL "libsupc++") |
Howard Hinnant | b85dea3 | 2013-02-08 19:04:53 | [diff] [blame] | 133 | set(_LIBSUPCXX_INCLUDE_FILES |
| 134 | cxxabi.h bits/c++config.h bits/os_defines.h bits/cpu_defines.h |
| 135 | bits/cxxabi_tweaks.h bits/cxxabi_forced.h |
| 136 | ) |
Peter Collingbourne | d0d308f | 2013-10-06 22:13:19 | [diff] [blame] | 137 | if ("${LIBCXX_CXX_ABI}" STREQUAL "libstdc++") |
| 138 | set(_LIBSUPCXX_DEFINES "-DLIBSTDCXX") |
| 139 | set(_LIBSUPCXX_LIBNAME stdc++) |
| 140 | else() |
| 141 | set(_LIBSUPCXX_DEFINES "") |
| 142 | set(_LIBSUPCXX_LIBNAME supc++) |
| 143 | endif() |
| 144 | setup_abi_lib("LIBCXX_LIBSUPCXX_INCLUDE_PATHS" |
| 145 | "-D__GLIBCXX__ ${_LIBSUPCXX_DEFINES}" |
| 146 | "${_LIBSUPCXX_LIBNAME}" "${_LIBSUPCXX_INCLUDE_FILES}" "bits" |
Howard Hinnant | b85dea3 | 2013-02-08 19:04:53 | [diff] [blame] | 147 | ) |
Howard Hinnant | 46c49d1 | 2013-02-07 15:27:39 | [diff] [blame] | 148 | elseif ("${LIBCXX_CXX_ABI}" STREQUAL "libcxxabi") |
Howard Hinnant | b85dea3 | 2013-02-08 19:04:53 | [diff] [blame] | 149 | setup_abi_lib("LIBCXX_LIBCXXABI_INCLUDE_PATHS" "" |
Peter Collingbourne | 66a8fce | 2013-10-03 22:58:36 | [diff] [blame] | 150 | "c++abi" "cxxabi.h" "" |
Howard Hinnant | 46c49d1 | 2013-02-07 15:27:39 | [diff] [blame] | 151 | ) |
| 152 | elseif ("${LIBCXX_CXX_ABI}" STREQUAL "libcxxrt") |
Howard Hinnant | b85dea3 | 2013-02-08 19:04:53 | [diff] [blame] | 153 | setup_abi_lib("LIBCXX_LIBCXXRT_INCLUDE_PATHS" "-DLIBCXXRT" |
| 154 | "cxxrt" "cxxabi.h;unwind.h;unwind-arm.h;unwind-itanium.h" "" |
Howard Hinnant | 46c49d1 | 2013-02-07 15:27:39 | [diff] [blame] | 155 | ) |
Michael J. Spencer | db8a030 | 2012-12-31 19:34:21 | [diff] [blame] | 156 | elseif (NOT "${LIBCXX_CXX_ABI}" STREQUAL "none") |
Michael J. Spencer | a358fbe | 2012-11-30 21:02:29 | [diff] [blame] | 157 | message(FATAL_ERROR |
Peter Collingbourne | d0d308f | 2013-10-06 22:13:19 | [diff] [blame] | 158 | "Currently libstdc++, libsupc++, libcxxabi, libcxxrt and none are " |
Howard Hinnant | b85dea3 | 2013-02-08 19:04:53 | [diff] [blame] | 159 | "supported for c++ abi." |
| 160 | ) |
Michael J. Spencer | a358fbe | 2012-11-30 21:02:29 | [diff] [blame] | 161 | endif () |
| 162 | |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 163 | # Configure compiler. |
| 164 | include(config-ix) |
| 165 | |
| 166 | #=============================================================================== |
| 167 | # Setup Compiler Flags |
| 168 | #=============================================================================== |
| 169 | |
| 170 | # Get required flags. |
| 171 | # On all systems the system c++ standard library headers need to be excluded. |
| 172 | if (MSVC) |
| 173 | # MSVC only has -X, which disables all default includes; including the crt. |
| 174 | # Thus, we do nothing and hope we don't accidentally include any of the C++ |
| 175 | # headers. |
| 176 | else() |
| 177 | if (LIBCXX_HAS_NOSTDINCXX_FLAG) |
Saleem Abdulrasool | eb54781 | 2014-03-12 04:11:31 | [diff] [blame] | 178 | list(APPEND LIBCXX_CXX_REQUIRED_FLAGS -nostdinc++) |
David Fang | 44ead61 | 2014-06-24 20:32:11 | [diff] [blame^] | 179 | string(REPLACE "-stdlib=libc++" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 180 | endif() |
| 181 | if (LIBCXX_ENABLE_CXX0X AND LIBCXX_HAS_STDCXX0X_FLAG) |
| 182 | list(APPEND LIBCXX_CXX_REQUIRED_FLAGS -std=c++0x) |
| 183 | endif() |
| 184 | endif() |
| 185 | |
| 186 | macro(append_if list condition var) |
| 187 | if (${condition}) |
| 188 | list(APPEND ${list} ${var}) |
| 189 | endif() |
| 190 | endmacro() |
| 191 | |
| 192 | # Get warning flags |
Howard Hinnant | adb73b1 | 2013-10-05 00:07:35 | [diff] [blame] | 193 | if (NOT MSVC) |
| 194 | append_if(LIBCXX_CXX_WARNING_FLAGS LIBCXX_HAS_WALL_FLAG -Wall) |
Saleem Abdulrasool | eb54781 | 2014-03-12 04:11:31 | [diff] [blame] | 195 | list(APPEND LIBCXX_CXX_REQUIRED_FLAGS -Werror=return-type) |
Howard Hinnant | adb73b1 | 2013-10-05 00:07:35 | [diff] [blame] | 196 | endif() |
Marshall Clow | 0f7afe7 | 2013-10-21 15:56:35 | [diff] [blame] | 197 | |
Douglas Gregor | f9b6e7e | 2012-06-07 22:26:00 | [diff] [blame] | 198 | append_if(LIBCXX_CXX_WARNING_FLAGS LIBCXX_HAS_W_FLAG -W) |
| 199 | append_if(LIBCXX_CXX_WARNING_FLAGS LIBCXX_HAS_WNO_UNUSED_PARAMETER_FLAG -Wno-unused-parameter) |
| 200 | append_if(LIBCXX_CXX_WARNING_FLAGS LIBCXX_HAS_WWRITE_STRINGS_FLAG -Wwrite-strings) |
| 201 | append_if(LIBCXX_CXX_WARNING_FLAGS LIBCXX_HAS_WNO_LONG_LONG_FLAG -Wno-long-long) |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 202 | if (LIBCXX_ENABLE_WERROR) |
Douglas Gregor | f9b6e7e | 2012-06-07 22:26:00 | [diff] [blame] | 203 | append_if(LIBCXX_CXX_WARNING_FLAGS LIBCXX_HAS_WERROR_FLAG -Werror) |
| 204 | append_if(LIBCXX_CXX_WARNING_FLAGS LIBCXX_HAS_WX_FLAG -WX) |
Alexey Samsonov | f7eb573 | 2013-10-02 07:44:19 | [diff] [blame] | 205 | else() |
| 206 | append_if(LIBCXX_CXX_WARNING_FLAGS LIBCXX_HAS_WNO_ERROR_FLAG -Wno-error) |
| 207 | append_if(LIBCXX_CXX_WARNING_FLAGS LIBCXX_HAS_NO_WX_FLAG -WX-) |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 208 | endif() |
| 209 | if (LIBCXX_ENABLE_PEDANTIC) |
Douglas Gregor | f9b6e7e | 2012-06-07 22:26:00 | [diff] [blame] | 210 | append_if(LIBCXX_CXX_WARNING_FLAGS LIBCXX_HAS_PEDANTIC_FLAG -pedantic) |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 211 | endif() |
| 212 | |
| 213 | # Get feature flags. |
| 214 | # Exceptions |
| 215 | if (LIBCXX_ENABLE_EXCEPTIONS) |
| 216 | # Catches C++ exceptions only and tells the compiler to assume that extern C |
| 217 | # functions never throw a C++ exception. |
| 218 | append_if(LIBCXX_CXX_FEATURE_FLAGS LIBCXX_HAS_EHSC_FLAG -EHsc) |
| 219 | else() |
| 220 | list(APPEND LIBCXX_CXX_FEATURE_FLAGS -D_LIBCPP_NO_EXCEPTIONS) |
| 221 | append_if(LIBCXX_CXX_FEATURE_FLAGS LIBCXX_HAS_NO_EHS_FLAG -EHs-) |
| 222 | append_if(LIBCXX_CXX_FEATURE_FLAGS LIBCXX_HAS_NO_EHA_FLAG -EHa-) |
| 223 | append_if(LIBCXX_CXX_FEATURE_FLAGS LIBCXX_HAS_FNO_EXCEPTIONS_FLAG -fno-exceptions) |
| 224 | endif() |
| 225 | # RTTI |
| 226 | if (NOT LIBCXX_ENABLE_RTTI) |
| 227 | list(APPEND LIBCXX_CXX_FEATURE_FLAGS -D_LIBCPP_NO_RTTI) |
| 228 | append_if(LIBCXX_CXX_FEATURE_FLAGS LIBCXX_HAS_NO_GR_FLAG -GR-) |
| 229 | append_if(LIBCXX_CXX_FEATURE_FLAGS LIBCXX_HAS_FNO_RTTI_FLAG -fno-rtti) |
| 230 | endif() |
| 231 | # Assert |
Howard Hinnant | e103a3d | 2012-08-05 17:37:39 | [diff] [blame] | 232 | string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE) |
| 233 | if (LIBCXX_ENABLE_ASSERTIONS) |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 234 | # MSVC doesn't like _DEBUG on release builds. See PR 4379. |
| 235 | if (NOT MSVC) |
| 236 | list(APPEND LIBCXX_CXX_FEATURE_FLAGS -D_DEBUG) |
| 237 | endif() |
| 238 | # On Release builds cmake automatically defines NDEBUG, so we |
| 239 | # explicitly undefine it: |
| 240 | if (uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE") |
| 241 | list(APPEND LIBCXX_CXX_FEATURE_FLAGS -UNDEBUG) |
| 242 | endif() |
| 243 | else() |
| 244 | if (NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE") |
| 245 | list(APPEND LIBCXX_CXX_FEATURE_FLAGS -DNDEBUG) |
| 246 | endif() |
| 247 | endif() |
Howard Hinnant | 4a0e74f | 2013-02-25 15:50:36 | [diff] [blame] | 248 | # Static library |
| 249 | if (NOT LIBCXX_ENABLE_SHARED) |
| 250 | list(APPEND LIBCXX_CXX_FEATURE_FLAGS -D_LIBCPP_BUILD_STATIC) |
| 251 | endif() |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 252 | |
| 253 | # This is the _ONLY_ place where add_definitions is called. |
Marshall Clow | 0f7afe7 | 2013-10-21 15:56:35 | [diff] [blame] | 254 | if (MSVC) |
| 255 | add_definitions(-D_CRT_SECURE_NO_WARNINGS) |
| 256 | endif() |
| 257 | |
Saleem Abdulrasool | 89a52ff | 2014-03-12 04:11:28 | [diff] [blame] | 258 | string(REPLACE ";" " " LIBCXX_CXX_REQUIRED_FLAGS "${LIBCXX_CXX_REQUIRED_FLAGS}") |
| 259 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBCXX_CXX_REQUIRED_FLAGS}") |
| 260 | |
| 261 | string(REPLACE ";" " " LIBCXX_CXX_WARNING_FLAGS "${LIBCXX_CXX_WARNING_FLAGS}") |
| 262 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBCXX_CXX_WARNING_FLAGS}") |
| 263 | |
| 264 | string(REPLACE ";" " " LIBCXX_CXX_FEATURE_FLAGS "${LIBCXX_CXX_FEATURE_FLAGS}") |
| 265 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBCXX_CXX_FEATURE_FLAGS}") |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 266 | |
| 267 | #=============================================================================== |
| 268 | # Setup Source Code |
| 269 | #=============================================================================== |
| 270 | |
| 271 | include_directories(include) |
Howard Hinnant | c4962b3 | 2013-11-15 17:18:57 | [diff] [blame] | 272 | add_subdirectory(include) |
Michael J. Spencer | 626916f | 2010-12-10 19:47:54 | [diff] [blame] | 273 | |
| 274 | # Add source code. This also contains all of the logic for deciding linker flags |
| 275 | # soname, etc... |
| 276 | add_subdirectory(lib) |
| 277 | |
| 278 | #=============================================================================== |
| 279 | # Setup Tests |
| 280 | #=============================================================================== |
| 281 | |
| 282 | add_subdirectory(test) |