-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
15 lines (15 loc) · 969 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
cmake_minimum_required(VERSION 2.8)
project(Robot)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-unused-parameter -pedantic -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -I${CMAKE_CURRENT_LIST_DIR}/wpilib/include/ -I${CMAKE_CURRENT_LIST_DIR}/src -I${CMAKE_CURRENT_LIST_DIR}/CTRE/include -I${CMAKE_CURRENT_LIST_DIR}/wpilib/lib -O0 -g3 -fmessage-length=0 -flto=1 --param ggc-min-expand=0")
SET(CMAKE_EXE_LINKER_FLAGS "-L${CMAKE_CURRENT_LIST_DIR}/wpilib/lib -Wl,-rpath,/opt/GenICam_v2_3/bin/Linux_armv7-a")
file(GLOB_RECURSE COM_SRC_FILES src/*.cpp lib/*.cpp)
#add_subdirectory(hal)
#add_subdirectory(networktables/cpp)
#add_subdirectory(wpilibc)
ADD_EXECUTABLE(FRC ${COM_SRC_FILES})
ADD_LIBRARY(TalonSRXLib STATIC IMPORTED)
SET_TARGET_PROPERTIES(TalonSRXLib PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/CTRE/lib/libTalonSRXLib.a)
TARGET_LINK_LIBRARIES(FRC TalonSRXLib wpi)