Add openbsd-getopt to tdtool on Windows

This commit is contained in:
Micke Prag 2012-01-18 11:43:45 +01:00
parent 3d7f600dd9
commit eac97c3684
2 changed files with 8 additions and 2 deletions

View file

@ -52,6 +52,9 @@ ADD_SUBDIRECTORY(service)
ADD_SUBDIRECTORY(client)
IF(BUILD_TDTOOL)
IF(WIN32)
ADD_SUBDIRECTORY(3rdparty/openbsd-getopt)
ENDIF()
ADD_SUBDIRECTORY(tdtool)
ENDIF(BUILD_TDTOOL)
IF(BUILD_TDADMIN)

View file

@ -22,9 +22,12 @@ INCLUDE_DIRECTORIES(
ADD_DEFINITIONS( -DVERSION="${DISPLAYED_VERSION}" )
IF (WIN32)
FIND_LIBRARY(TELLDUSCORE_LIBRARY TelldusCore)
TARGET_LINK_LIBRARIES(tdtool
${TELLDUSCORE_LIBRARY}
TelldusCore
openbsd-getopt
)
INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/3rdparty/openbsd-getopt
)
ELSEIF (APPLE)
TARGET_LINK_LIBRARIES(tdtool