Find the telldus-core.h header in the output directory on Windows.
This commit is contained in:
parent
da2308b29c
commit
5f0d1b3c72
4 changed files with 24 additions and 33 deletions
|
@ -24,12 +24,10 @@ SET(BUILD_TELLDUS-CENTER TRUE CACHE BOOL "Build TelldusCenter")
|
|||
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
|
||||
SET(GENERATE_MAN FALSE CACHE BOOL "Enable generation of man-files")
|
||||
|
||||
IF (WIN32)
|
||||
SET(TELLDUSCORE_INCLUDE_DIR "" CACHE PATH "Path to the directory which contains telldus-core.h")
|
||||
ELSEIF(UNIX)
|
||||
IF(UNIX)
|
||||
SET(PLUGIN_LIB_PATH "lib" CACHE STRING "Relative path to the directory to install TelldusCenter plugin libraries into")
|
||||
SET(PLUGIN_LIB_FULL_PATH "${PLUGIN_LIB_PATH}/telldus/tellduscenter/plugins")
|
||||
ENDIF (WIN32)
|
||||
ENDIF ()
|
||||
|
||||
if(BUILD_LIBTELLDUS-GUI)
|
||||
ADD_SUBDIRECTORY(TelldusGui)
|
||||
|
|
|
@ -21,9 +21,5 @@ SET( Plugin_EXTRA
|
|||
|
||||
FIND_PACKAGE(TelldusCore REQUIRED)
|
||||
SET( Plugin_LIBRARIES ${TELLDUSCORE_LIBRARY} )
|
||||
INCLUDE_DIRECTORIES(
|
||||
${TELLDUSCORE_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
|
||||
INCLUDE( ../TelldusCenterPlugin.cmake NO_POLICY_SCOPE )
|
||||
|
|
|
@ -71,7 +71,7 @@ SET( telldus-gui_LIBRARIES
|
|||
)
|
||||
|
||||
FIND_PACKAGE(TelldusCore REQUIRED)
|
||||
list(APPEND telldus-gui_LIBRARIES ${TELLDUSCORE_LIBRARY} )
|
||||
LIST(APPEND telldus-gui_LIBRARIES ${TELLDUSCORE_LIBRARY} )
|
||||
|
||||
######## Configurable options for the platform ########
|
||||
|
||||
|
@ -96,9 +96,6 @@ ELSEIF (WIN32)
|
|||
-D_WINDOWS
|
||||
-DTELLDUSGUI_EXPORTS
|
||||
)
|
||||
INCLUDE_DIRECTORIES(
|
||||
${TELLDUSCORE_INCLUDE_DIR}
|
||||
)
|
||||
ELSE (APPLE)
|
||||
#### Linux ####
|
||||
SET( telldus-gui_TARGET telldus-gui )
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
|
||||
IF (APPLE)
|
||||
FIND_LIBRARY( TELLDUSCORE_LIBRARY TelldusCore )
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
${TELLDUSCORE_LIBRARY}/Headers
|
||||
)
|
||||
|
||||
ELSEIF (WINDOWS)
|
||||
SET(TELLDUSCORE_LIBRARY ${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/TelldusCore.lib)
|
||||
|
||||
|
||||
ELSE (APPLE)
|
||||
FIND_LIBRARY( TELLDUSCORE_LIBRARY telldus-core )
|
||||
|
||||
ENDIF(APPLE)
|
||||
|
||||
IF(TELLDUSCORE_INCLUDE_PATH)
|
||||
INCLUDE_DIRECTORIES(${TELLDUSCORE_INCLUDE_PATH})
|
||||
ENDIF()
|
||||
|
||||
|
||||
IF (APPLE)
|
||||
FIND_LIBRARY( TELLDUSCORE_LIBRARY TelldusCore )
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
${TELLDUSCORE_LIBRARY}/Headers
|
||||
)
|
||||
|
||||
ELSEIF (WIN32)
|
||||
SET(TELLDUSCORE_LIBRARY ${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/TelldusCore.lib)
|
||||
SET(TELLDUSCORE_INCLUDE_PATH ${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/)
|
||||
|
||||
ELSE (APPLE)
|
||||
FIND_LIBRARY( TELLDUSCORE_LIBRARY telldus-core )
|
||||
|
||||
ENDIF(APPLE)
|
||||
|
||||
IF(TELLDUSCORE_INCLUDE_PATH)
|
||||
INCLUDE_DIRECTORIES(${TELLDUSCORE_INCLUDE_PATH})
|
||||
ENDIF()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue