Add openbsd-getopt to tdtool on Windows
This commit is contained in:
parent
3d7f600dd9
commit
eac97c3684
2 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue