You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

  1. Adopted to OpenWrt target. Most likely these changes go elsewhere when done right.
  2. --- a/service/CMakeLists.txt
  3. +++ b/service/CMakeLists.txt
  4. @@ -98,7 +98,7 @@ IF (UNIX AND NOT APPLE)
  5. IF (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
  6. SET(DEFAULT_STATE_INSTALL_DIR "/var/spool")
  7. ELSE ()
  8. - SET(DEFAULT_STATE_INSTALL_DIR "/var/state")
  9. + SET(DEFAULT_STATE_INSTALL_DIR "/tmp/state") # OpenWrt has var as symlink to tmp
  10. ENDIF ()
  11. SET(STATE_INSTALL_DIR "${DEFAULT_STATE_INSTALL_DIR}" CACHE PATH "The directory to store state information of the devices")
  12. --- a/tdadmin/CMakeLists.txt
  13. +++ b/tdadmin/CMakeLists.txt
  14. @@ -38,8 +38,11 @@ ELSEIF (CMAKE_SYSTEM_NAME MATCHES "FreeB
  15. ${ARGP_LIBRARY}
  16. )
  17. ELSE (WIN32)
  18. + # Linux, in this case openwrt that requires argp-standalone
  19. + FIND_LIBRARY(ARGP_LIBRARY argp)
  20. TARGET_LINK_LIBRARIES(tdadmin
  21. ${CMAKE_BINARY_DIR}/client/libtelldus-core.so
  22. + ${ARGP_LIBRARY}
  23. )
  24. ENDIF (WIN32)
  25. --- a/CMakeLists.txt
  26. +++ b/CMakeLists.txt
  27. @@ -62,7 +62,7 @@ IF(DOXYGEN_FOUND)
  28. SET(DOXY_CONFIG ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
  29. CONFIGURE_FILE(
  30. - "${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in"
  31. + "${CMAKE_CURRENT_SOURCE_DIR}/CMakeDoxyfile.in"
  32. ${DOXY_CONFIG} @ONLY
  33. )