file(GLOB_RECURSE SOURCES *.cpp)
file(GLOB_RECURSE INCLUDES *.h)

if(APPLE)
    set(CMAKE_MACOSX_RPATH ON)
endif()


include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})

add_library (NMEAParser SHARED ${SOURCES} ${INCLUDES})
add_library (NMEAParserStatic STATIC ${SOURCES}  ${INCLUDES})


install (TARGETS NMEAParser DESTINATION lib)
install (TARGETS NMEAParserStatic DESTINATION lib)
install (FILES NMEA.h DESTINATION include)

if(APPLE)
    set(CMAKE_MACOSX_RPATH ON)
endif()

include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})

set(SOURCES
  ${CMAKE_CURRENT_SOURCE_DIR}/NMEAMessage.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/NMEAParser.cpp
  )
set(INCLUDES
  NMEA.h
  NMEAParser.cpp)

add_library (NMEAParser SHARED ${SOURCES} ${INCLUDES})
add_library (NMEAParserStatic STATIC ${SOURCES}  ${INCLUDES})

install (TARGETS NMEAParser DESTINATION lib)
install (TARGETS NMEAParserStatic DESTINATION lib)
install (FILES NMEA.h DESTINATION include)

Fix Emacs and CMake conflict
Fix Emacs and CMake conflict

Emacs autosave files and CMake don't get on. Change CMake to stop using globbing
and instead use the actual source file names.
