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

# Replace the find_package section with direct path specification
set(MOOSGEODESY_INCLUDE_DIRS "/usr/local/include")
set(MOOSGEODESY_LIBRARIES "/usr/local/lib/libMOOSGeodesy.so")
include_directories(${MOOSGEODESY_INCLUDE_DIRS})

message(STATUS "Manually set MOOSGeodesy paths:")
message(STATUS "  - Include dirs: ${MOOSGEODESY_INCLUDE_DIRS}")
message(STATUS "  - Libraries: ${MOOSGEODESY_LIBRARIES}")

file(GLOB SRC_FILES 
  "*.cpp"
  "${CMAKE_CURRENT_SOURCE_DIR}/Controler/*.cpp"
)

SET(SRC
  AUV150.cpp
  AUV150_Info.cpp
  main.cpp
  sqlit3/SQLite.cpp
  sqlit3/sqlite3.c
  ${SRC_FILES}
)

# 添加头文件目录
include_directories(
  ${MOOSGEODESY_INCLUDE_DIRS}
  ${CMAKE_CURRENT_SOURCE_DIR}/Controler
  ${CMAKE_CURRENT_SOURCE_DIR}/sqlit3
)

ADD_EXECUTABLE(pAUV150 ${SRC})

TARGET_LINK_LIBRARIES(pAUV150
   ${MOOS_LIBRARIES}
   ${MOOSGEODESY_LIBRARIES}
   geometry
   apputil
   mbutil
   m
   pthread)
