From ff39bf9409c630530b72f50cf0c6233cb05f2694 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sun, 19 Apr 2015 14:10:21 -0400 Subject: [PATCH] Added cmake WPILIB variable --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ca96e53..45e653a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)