#--------------------------------------------------------
# The CMakeLists.txt for:                       pStateManagement
# Author(s):                              chenlizhi
#--------------------------------------------------------

SET(SRC
  StateManagement.cpp
  StateManagement_Info.cpp
  main.cpp
)

FIND_LIBRARY(DUNE_LIB dune-core /usr/local/lib /usr/local/lib/DUNE)
FIND_PATH(DUNE_INCLUDE DUNE/IMC.hpp /usr/local/include /usr/local/include/DUNE)
include_directories(${DUNE_INCLUDE})

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

#find_package (jsoncpp NO_MODULE REQUIRED)

find_package (GeographicLib REQUIRED)
include_directories(${GeographicLib_INCLUDE_DIRS})

include_directories(/usr/include/jsoncpp/)
link_directories(/usr/local/lib/)

ADD_EXECUTABLE(pStateManagement ${SRC})

TARGET_LINK_LIBRARIES(pStateManagement
   ${MOOS_LIBRARIES}
   ${CMAKE_DL_LIBS}
   ${SYSTEM_LIBS} 
   ${DUNE_LIB} 
   ${GeographicLib_LIBRARIES}       
   mbutil
   m
   pthread
   jsoncpp 
)

