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.

45 lines
1.3 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/common/CMakeLists.txt
  26. +++ b/common/CMakeLists.txt
  27. @@ -66,12 +66,16 @@ ELSEIF (CMAKE_SYSTEM_NAME MATCHES "FreeB
  28. )
  29. ELSE (APPLE)
  30. #### Linux ####
  31. + #FIND_LIBRARY(ICONV_LIBRARY iconv) Does not work
  32. ADD_DEFINITIONS( -D_LINUX )
  33. LIST(APPEND telldus-common_SRCS
  34. Event_unix.cpp
  35. EventHandler_unix.cpp
  36. Socket_unix.cpp
  37. )
  38. + LIST(APPEND telldus-common_LIBRARIES
  39. + ${ICONV_LIBRARY}
  40. + )
  41. ENDIF (APPLE)