Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 1 | # Disable in-source builds to prevent source tree corruption. |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 2 | if(" ${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL " ${CMAKE_CURRENT_BINARY_DIR}") |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 3 | message(FATAL_ERROR " |
| 4 | FATAL: In-source builds are not allowed. |
| 5 | You should create a separate directory for build files. |
| 6 | ") |
| 7 | endif() |
| 8 | |
Austin Schuh | 75263e3 | 2022-02-22 18:05:32 -0800 | [diff] [blame^] | 9 | if ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows") |
| 10 | set(CMAKE_SYSTEM_VERSION 10.0.18362.0 CACHE STRING INTERNAL FORCE) |
| 11 | set(CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION 10.0.18362.0 CACHE STRING INTERNAL FORCE) |
| 12 | endif() |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 13 | |
| 14 | project(allwpilib) |
| 15 | cmake_minimum_required(VERSION 3.3.0) |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 16 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules") |
| 17 | |
Austin Schuh | 75263e3 | 2022-02-22 18:05:32 -0800 | [diff] [blame^] | 18 | message(STATUS "Platform version: ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}") |
| 19 | |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 20 | set(WPILIB_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 21 | |
| 22 | INCLUDE(CPack) |
| 23 | |
| 24 | set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE) |
| 25 | set_property(GLOBAL PROPERTY USE_FOLDERS ON) |
| 26 | |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 27 | set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${WPILIB_BINARY_DIR}/lib) |
| 28 | set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${WPILIB_BINARY_DIR}/lib) |
| 29 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${WPILIB_BINARY_DIR}/bin) |
| 30 | set(CMAKE_JAVA_TARGET_OUTPUT_DIR ${WPILIB_BINARY_DIR}/jar) |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 31 | |
| 32 | # use, i.e. don't skip the full RPATH for the build tree |
| 33 | SET(CMAKE_SKIP_BUILD_RPATH FALSE) |
| 34 | |
| 35 | # when building, don't use the install RPATH already |
| 36 | # (but later on when installing) |
| 37 | SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) |
| 38 | |
| 39 | SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/wpilib/lib") |
| 40 | |
| 41 | # add the automatically determined parts of the RPATH |
| 42 | # which point to directories outside the build tree to the install RPATH |
| 43 | SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) |
| 44 | |
| 45 | # the RPATH to be used when installing, but only if it's not a system directory |
| 46 | LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/wpilib/lib" isSystemDir) |
| 47 | IF("${isSystemDir}" STREQUAL "-1") |
| 48 | SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/wpilib/lib") |
| 49 | ENDIF("${isSystemDir}" STREQUAL "-1") |
| 50 | |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 51 | # Options for building certain parts of the repo. Everything is built by default. |
| 52 | option(BUILD_SHARED_LIBS "Build with shared libs (needed for JNI)" ON) |
| 53 | option(WITH_JAVA "Include java and JNI in the build" ON) |
| 54 | option(WITH_CSCORE "Build cscore (needs OpenCV)" ON) |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 55 | option(WITH_WPIMATH "Build wpimath" ON) |
| 56 | option(WITH_WPILIB "Build hal, wpilibc/j, and myRobot (needs OpenCV)" ON) |
| 57 | option(WITH_OLD_COMMANDS "Build old commands" OFF) |
| 58 | option(WITH_EXAMPLES "Build examples" OFF) |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 59 | option(WITH_TESTS "Build unit tests (requires internet connection)" ON) |
| 60 | option(WITH_GUI "Build GUI items" ON) |
| 61 | option(WITH_SIMULATION_MODULES "Build simulation modules" ON) |
| 62 | |
| 63 | # Options for external HAL. |
| 64 | option(WITH_EXTERNAL_HAL "Use a separately built HAL" OFF) |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 65 | set(EXTERNAL_HAL_FILE "" CACHE FILEPATH "Location to look for an external HAL CMake File") |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 66 | |
| 67 | # Options for using a package manager (vcpkg) for certain dependencies. |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 68 | option(USE_VCPKG_FMTLIB "Use vcpkg fmtlib" OFF) |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 69 | option(USE_VCPKG_LIBUV "Use vcpkg libuv" OFF) |
| 70 | option(USE_VCPKG_EIGEN "Use vcpkg eigen" OFF) |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 71 | |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 72 | # Options for installation. |
| 73 | option(WITH_FLAT_INSTALL "Use a flat install directory" OFF) |
| 74 | |
| 75 | # Options for location of OpenCV Java. |
| 76 | set(OPENCV_JAVA_INSTALL_DIR "" CACHE PATH "Location to search for the OpenCV jar file") |
| 77 | |
| 78 | # Set default build type to release with debug info (i.e. release mode optimizations |
| 79 | # are performed, but debug info still exists). |
| 80 | if (NOT CMAKE_BUILD_TYPE) |
| 81 | set (CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "" FORCE) |
| 82 | endif() |
| 83 | |
| 84 | # We always want flat install with MSVC. |
| 85 | if (MSVC) |
| 86 | set(WITH_FLAT_INSTALL ON) |
| 87 | endif() |
| 88 | |
| 89 | if (WITH_JAVA AND NOT BUILD_SHARED_LIBS) |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 90 | message(FATAL_ERROR " |
| 91 | FATAL: Cannot build static libs with Java enabled. |
| 92 | Static libs requires both BUILD_SHARED_LIBS=OFF and |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 93 | WITH_JAVA=OFF |
| 94 | ") |
| 95 | endif() |
| 96 | |
| 97 | if (WITH_SIMULATION_MODULES AND NOT BUILD_SHARED_LIBS) |
| 98 | message(FATAL_ERROR " |
| 99 | FATAL: Cannot build static libs with simulation modules enabled. |
| 100 | Static libs requires both BUILD_SHARED_LIBS=OFF and |
| 101 | WITH_SIMULATION_MODULES=OFF |
| 102 | ") |
| 103 | endif() |
| 104 | |
| 105 | if (NOT WITH_JAVA OR NOT WITH_CSCORE) |
| 106 | if(NOT "${OPENCV_JAVA_INSTALL_DIR}" STREQUAL "") |
| 107 | message(WARNING " |
| 108 | WARNING: OpenCV Java dir set but java is not enabled! |
| 109 | It will be ignored. |
| 110 | ") |
| 111 | endif() |
| 112 | endif() |
| 113 | |
| 114 | if (NOT WITH_WPILIB AND WITH_SIMULATION_MODULES) |
| 115 | message(FATAL_ERROR " |
| 116 | FATAL: Cannot build simulation modules with wpilib disabled. |
| 117 | Enable wpilib by setting WITH_WPILIB=ON |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 118 | ") |
| 119 | endif() |
| 120 | |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 121 | if (NOT WITH_WPIMATH AND WITH_WPILIB) |
| 122 | message(FATAL_ERROR " |
| 123 | FATAL: Cannot build wpilib without wpimath. |
| 124 | Enable wpimath by setting WITH_WPIMATH=ON |
| 125 | ") |
| 126 | endif() |
| 127 | |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 128 | set( wpilib_dest wpilib) |
| 129 | set( include_dest wpilib/include ) |
| 130 | set( main_lib_dest wpilib/lib ) |
| 131 | set( java_lib_dest wpilib/java ) |
| 132 | set( jni_lib_dest wpilib/jni ) |
| 133 | |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 134 | if (WITH_FLAT_INSTALL) |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 135 | set (wpilib_config_dir ${wpilib_dest}) |
| 136 | else() |
| 137 | set (wpilib_config_dir share/wpilib) |
| 138 | endif() |
| 139 | |
| 140 | if (USE_VCPKG_LIBUV) |
| 141 | set (LIBUV_VCPKG_REPLACE "find_package(unofficial-libuv CONFIG)") |
| 142 | endif() |
| 143 | |
| 144 | if (USE_VCPKG_EIGEN) |
| 145 | set (EIGEN_VCPKG_REPLACE "find_package(Eigen3 CONFIG)") |
| 146 | endif() |
| 147 | |
Austin Schuh | 75263e3 | 2022-02-22 18:05:32 -0800 | [diff] [blame^] | 148 | find_package(LIBSSH 0.7.1) |
| 149 | |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 150 | if (WITH_FLAT_INSTALL) |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 151 | set(WPIUTIL_DEP_REPLACE "include($\{SELF_DIR\}/wpiutil-config.cmake)") |
| 152 | set(NTCORE_DEP_REPLACE "include($\{SELF_DIR\}/ntcore-config.cmake)") |
| 153 | set(CSCORE_DEP_REPLACE_IMPL "include(\${SELF_DIR}/cscore-config.cmake)") |
| 154 | set(CAMERASERVER_DEP_REPLACE_IMPL "include(\${SELF_DIR}/cameraserver-config.cmake)") |
| 155 | set(HAL_DEP_REPLACE_IMPL "include(\${SELF_DIR}/hal-config.cmake)") |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 156 | set(WPIMATH_DEP_REPLACE "include($\{SELF_DIR\}/wpimath-config.cmake)") |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 157 | set(WPILIBC_DEP_REPLACE_IMPL "include(\${SELF_DIR}/wpilibc-config.cmake)") |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 158 | set(WPILIBNEWCOMMANDS_DEP_REPLACE "include(\${SELF_DIR}/wpilibNewcommands-config.cmake)") |
| 159 | set(WPILIBOLDCOMMANDS_DEP_REPLACE "include(\${SELF_DIR}/wpilibOldcommands-config.cmake)") |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 160 | else() |
| 161 | set(WPIUTIL_DEP_REPLACE "find_dependency(wpiutil)") |
| 162 | set(NTCORE_DEP_REPLACE "find_dependency(ntcore)") |
| 163 | set(CSCORE_DEP_REPLACE_IMPL "find_dependency(cscore)") |
| 164 | set(CAMERASERVER_DEP_REPLACE_IMPL "find_dependency(cameraserver)") |
| 165 | set(HAL_DEP_REPLACE_IMPL "find_dependency(hal)") |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 166 | set(WPIMATH_DEP_REPLACE "find_dependency(wpimath)") |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 167 | set(WPILIBC_DEP_REPLACE_IMPL "find_dependency(wpilibc)") |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 168 | set(WPILIBNEWCOMMANDS_DEP_REPLACE "find_dependency(wpilibNewCommands)") |
| 169 | set(WPILIBOLDCOMMANDS_DEP_REPLACE "find_dependency(wpilibOldCommands)") |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 170 | endif() |
| 171 | |
| 172 | set(FILENAME_DEP_REPLACE "get_filename_component(SELF_DIR \"$\{CMAKE_CURRENT_LIST_FILE\}\" PATH)") |
| 173 | set(SELF_DIR "$\{SELF_DIR\}") |
| 174 | |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 175 | get_property(isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) |
| 176 | |
| 177 | if(isMultiConfig) |
| 178 | if(NOT "Asan" IN_LIST CMAKE_CONFIGURATION_TYPES) |
| 179 | list(APPEND CMAKE_CONFIGURATION_TYPES Asan) |
| 180 | endif() |
| 181 | if(NOT "Tsan" IN_LIST CMAKE_CONFIGURATION_TYPES) |
| 182 | list(APPEND CMAKE_CONFIGURATION_TYPES Tsan) |
| 183 | endif() |
| 184 | if(NOT "Ubsan" IN_LIST CMAKE_CONFIGURATION_TYPES) |
| 185 | list(APPEND CMAKE_CONFIGURATION_TYPES Ubsan) |
| 186 | endif() |
| 187 | else() |
| 188 | set(allowedBuildTypes Asan Tsan Ubsan Debug Release RelWithDebInfo MinSizeRel) |
| 189 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "${allowedBuildTypes}") |
| 190 | |
| 191 | if(CMAKE_BUILD_TYPE AND NOT CMAKE_BUILD_TYPE IN_LIST allowedBuildTypes) |
| 192 | message(FATAL_ERROR "Invalid build type: ${CMAKE_BUILD_TYPE}") |
| 193 | endif() |
| 194 | endif() |
| 195 | |
| 196 | set(CMAKE_C_FLAGS_ASAN |
| 197 | "${CMAKE_C_FLAGS_DEBUG} -fsanitize=address -fno-omit-frame-pointer" CACHE STRING |
| 198 | "Flags used by the C compiler for Asan build type or configuration." FORCE) |
| 199 | |
| 200 | set(CMAKE_CXX_FLAGS_ASAN |
| 201 | "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address -fno-omit-frame-pointer" CACHE STRING |
| 202 | "Flags used by the C++ compiler for Asan build type or configuration." FORCE) |
| 203 | |
| 204 | set(CMAKE_EXE_LINKER_FLAGS_ASAN |
| 205 | "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -fsanitize=address" CACHE STRING |
| 206 | "Linker flags to be used to create executables for Asan build type." FORCE) |
| 207 | |
| 208 | set(CMAKE_SHARED_LINKER_FLAGS_ASAN |
| 209 | "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -fsanitize=address" CACHE STRING |
| 210 | "Linker lags to be used to create shared libraries for Asan build type." FORCE) |
| 211 | |
| 212 | set(CMAKE_C_FLAGS_TSAN |
| 213 | "${CMAKE_C_FLAGS_DEBUG} -fsanitize=thread -fno-omit-frame-pointer" CACHE STRING |
| 214 | "Flags used by the C compiler for Tsan build type or configuration." FORCE) |
| 215 | |
| 216 | set(CMAKE_CXX_FLAGS_TSAN |
| 217 | "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=thread -fno-omit-frame-pointer" CACHE STRING |
| 218 | "Flags used by the C++ compiler for Tsan build type or configuration." FORCE) |
| 219 | |
| 220 | set(CMAKE_EXE_LINKER_FLAGS_TSAN |
| 221 | "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -fsanitize=thread" CACHE STRING |
| 222 | "Linker flags to be used to create executables for Tsan build type." FORCE) |
| 223 | |
| 224 | set(CMAKE_SHARED_LINKER_FLAGS_TSAN |
| 225 | "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -fsanitize=thread" CACHE STRING |
| 226 | "Linker lags to be used to create shared libraries for Tsan build type." FORCE) |
| 227 | |
| 228 | set(CMAKE_C_FLAGS_UBSAN |
| 229 | "${CMAKE_C_FLAGS_DEBUG} -fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer" CACHE STRING |
| 230 | "Flags used by the C compiler for Ubsan build type or configuration." FORCE) |
| 231 | |
| 232 | set(CMAKE_CXX_FLAGS_UBSAN |
| 233 | "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer" CACHE STRING |
| 234 | "Flags used by the C++ compiler for Ubsan build type or configuration." FORCE) |
| 235 | |
| 236 | set(CMAKE_EXE_LINKER_FLAGS_UBSAN |
| 237 | "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -fsanitize=undefined -fno-sanitize-recover=all" CACHE STRING |
| 238 | "Linker flags to be used to create executables for Ubsan build type." FORCE) |
| 239 | |
| 240 | set(CMAKE_SHARED_LINKER_FLAGS_UBSAN |
| 241 | "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -fsanitize=undefined" CACHE STRING |
| 242 | "Linker lags to be used to create shared libraries for Ubsan build type." FORCE) |
| 243 | |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 244 | if (WITH_TESTS) |
| 245 | enable_testing() |
| 246 | add_subdirectory(googletest) |
| 247 | include(GoogleTest) |
| 248 | endif() |
| 249 | |
| 250 | add_subdirectory(wpiutil) |
| 251 | add_subdirectory(ntcore) |
| 252 | |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 253 | if (WITH_WPIMATH) |
| 254 | add_subdirectory(wpimath) |
| 255 | endif() |
| 256 | |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 257 | if (WITH_GUI) |
Austin Schuh | 75263e3 | 2022-02-22 18:05:32 -0800 | [diff] [blame^] | 258 | add_subdirectory(fieldImages) |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 259 | add_subdirectory(imgui) |
| 260 | add_subdirectory(wpigui) |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 261 | add_subdirectory(glass) |
| 262 | add_subdirectory(outlineviewer) |
Austin Schuh | 75263e3 | 2022-02-22 18:05:32 -0800 | [diff] [blame^] | 263 | if (LIBSSH_FOUND) |
| 264 | add_subdirectory(roborioteamnumbersetter) |
| 265 | endif() |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 266 | endif() |
| 267 | |
| 268 | if (WITH_WPILIB OR WITH_SIMULATION_MODULES) |
| 269 | set(HAL_DEP_REPLACE ${HAL_DEP_REPLACE_IMPL}) |
| 270 | add_subdirectory(hal) |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 271 | endif() |
| 272 | |
| 273 | if (WITH_CSCORE) |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 274 | set(CSCORE_DEP_REPLACE ${CSCORE_DEP_REPLACE_IMPL}) |
| 275 | set(CAMERASERVER_DEP_REPLACE ${CAMERASERVER_DEP_REPLACE_IMPL}) |
| 276 | add_subdirectory(cscore) |
| 277 | add_subdirectory(cameraserver) |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 278 | endif() |
| 279 | |
| 280 | if (WITH_WPILIB) |
| 281 | set(WPILIBC_DEP_REPLACE ${WPILIBC_DEP_REPLACE_IMPL}) |
| 282 | add_subdirectory(wpilibj) |
| 283 | add_subdirectory(wpilibc) |
| 284 | add_subdirectory(wpilibNewCommands) |
| 285 | if (WITH_OLD_COMMANDS) |
| 286 | add_subdirectory(wpilibOldCommands) |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 287 | endif() |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 288 | if (WITH_EXAMPLES) |
| 289 | add_subdirectory(wpilibcExamples) |
| 290 | endif() |
| 291 | add_subdirectory(myRobot) |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 292 | endif() |
| 293 | |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 294 | if (WITH_SIMULATION_MODULES AND NOT WITH_EXTERNAL_HAL) |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 295 | add_subdirectory(simulation) |
| 296 | endif() |
| 297 | |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 298 | configure_file(wpilib-config.cmake.in ${WPILIB_BINARY_DIR}/wpilib-config.cmake ) |
| 299 | install(FILES ${WPILIB_BINARY_DIR}/wpilib-config.cmake DESTINATION ${wpilib_config_dir}) |