Since tdtool is not build with VC++ on Windows but with MinGW it is not compiled in our normal TelldusCore-build. We must use FIND_LIBRARY as any other 3rd-party application to find TelldusCore.dll

This commit is contained in:
Micke Prag 2009-09-02 09:02:44 +00:00
parent 0baf24b6a7
commit 7bfd7bd57e

View file

@ -18,15 +18,20 @@ INCLUDE_DIRECTORIES(
ADD_DEFINITIONS( -DVERSION="${DISPLAYED_VERSION}" )
IF (APPLE)
IF (WIN32)
FIND_LIBRARY(TELLDUSCORE_LIBRARY TelldusCore)
TARGET_LINK_LIBRARIES(tdtool
${TELLDUSCORE_LIBRARY}
)
ELSEIF (APPLE)
TARGET_LINK_LIBRARIES(tdtool
TelldusCore
)
ELSE (APPLE)
ELSE (WIN32)
TARGET_LINK_LIBRARIES(tdtool
telldus-core
)
ENDIF (APPLE)
ENDIF (WIN32)
IF (UNIX)
ADD_CUSTOM_COMMAND(