if(GTEST_FOUND)
  add_executable(testPiecewisePolynomial testPiecewisePolynomial.cpp)
  target_link_libraries(testPiecewisePolynomial drakeTrajectories ${GTEST_BOTH_LIBRARIES})
  add_test(NAME testPiecewisePolynomial COMMAND testPiecewisePolynomial)
endif()

add_executable(testExponentialPlusPiecewisePolynomial testExponentialPlusPiecewisePolynomial.cpp)
target_link_libraries(testExponentialPlusPiecewisePolynomial drakeTrajectories)
add_test(NAME testExponentialPlusPiecewisePolynomial COMMAND testExponentialPlusPiecewisePolynomial)

add_matlab_test(NAME systems/trajectories/test/expplusppFnderTest COMMAND expplusppFnderTest)
add_matlab_test(NAME systems/trajectories/test/feedbackTest COMMAND feedbackTest)
add_matlab_test(NAME systems/trajectories/test/ppRateTransitionTest COMMAND ppRateTransitionTest)
add_matlab_test(NAME systems/trajectories/test/ppdertest COMMAND ppdertest)
add_matlab_test(NAME systems/trajectories/test/ppmathtest COMMAND ppmathtest)
add_matlab_test(NAME systems/trajectories/test/pprefinetest COMMAND pprefinetest)

if(GTEST_FOUND)
  add_executable(testPiecewisePolynomial testPiecewisePolynomial.cpp)
  target_link_libraries(testPiecewisePolynomial drakeTrajectories ${GTEST_BOTH_LIBRARIES})
  add_test(NAME testPiecewisePolynomial COMMAND testPiecewisePolynomial)
endif()

add_executable(testExponentialPlusPiecewisePolynomial testExponentialPlusPiecewisePolynomial.cpp)
target_link_libraries(testExponentialPlusPiecewisePolynomial drakeTrajectories)
add_test(NAME testExponentialPlusPiecewisePolynomial COMMAND testExponentialPlusPiecewisePolynomial)

add_matlab_test(NAME systems/trajectories/test/expplusppFnderTest COMMAND expplusppFnderTest)
add_matlab_test(NAME systems/trajectories/test/feedbackTest COMMAND feedbackTest)
add_matlab_test(NAME systems/trajectories/test/ppRateTransitionTest COMMAND ppRateTransitionTest)
add_matlab_test(NAME systems/trajectories/test/ppdertest COMMAND ppdertest)
add_matlab_test(NAME systems/trajectories/test/ppmathtest COMMAND ppmathtest)
add_matlab_test(NAME systems/trajectories/test/pprefinetest COMMAND pprefinetest)

Fix inconsistent line endings in CMake files
Fix inconsistent line endings in CMake files
