mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
This is the changes made by Patrick Plenefisch converting the native code to use CMake and the CMake Maven Plugin, as opposed to the native Maven plugin. This is to allow for compatibility with newer versions of the GCC toolchain. All the cpp sources were moved from maven style directories to cpp style directories for CMake. Change-Id: I67f5e3608948f37c83b0990d232105a3784f8593
13 lines
469 B
CMake
13 lines
469 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
project(All-WPILib)
|
|
set(CMAKE_BUILD_TYPE Debug)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wformat=2 -Wextra -Wno-unused-parameter")
|
|
SET(CMAKE_SKIP_BUILD_RPATH TRUE)
|
|
|
|
file(GLOB_RECURSE NI_LIBS ni-libraries/*.so*)
|
|
get_filename_component(HAL_API_INCLUDES hal/include REALPATH)
|
|
get_filename_component(NWT_API_INCLUDES networktables/cpp/include REALPATH)
|
|
add_subdirectory(hal)
|
|
add_subdirectory(networktables/cpp)
|
|
add_subdirectory(wpilibc)
|