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:
parent
0baf24b6a7
commit
7bfd7bd57e
1 changed files with 47 additions and 42 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue