2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00

Added cmake WPILIB variable

This commit is contained in:
Austen Adler 2015-04-19 14:10:21 -04:00
parent 16eb22adbf
commit ff39bf9409

View File

@ -3,6 +3,8 @@ project(dent)
# The roboRIO (default: admin@10.20.59.2)
set(REMHOST admin@10.20.59.2)
# WPILib Directory
set(WPILIB /var/frc/wpilib)
# Compiler flags
set(CMAKE_CXX_COMPILER "/usr/bin/arm-frc-linux-gnueabi-g++")
@ -25,12 +27,12 @@ foreach(_headerFile ${DENT_HEADERS})
list(APPEND DENT_INCLUDE_DIRS ${_dir})
endforeach()
list(REMOVE_DUPLICATES DENT_INCLUDE_DIRS)
include_directories(/var/frc/wpilib/include)
include_directories(${WPILIB}/include)
# Build binary
include_directories(${DENT_INCLUDE_DIRS})
add_executable(FRCUserProgram ${DENT_SOURCES})
target_link_libraries(FRCUserProgram /var/frc/wpilib/lib/libwpi_2015.so)
target_link_libraries(FRCUserProgram ${WPILIB}/lib/libwpi_2015.so)
find_program(READER pv)
if(!READER)
find_program(READER cat)