better cmake
This commit is contained in:
parent
53270231c9
commit
066f09f03a
2 changed files with 7 additions and 5 deletions
|
@ -54,6 +54,8 @@ if (PROTOBUF_FOUND)
|
|||
|
||||
if(PURPLE_LIBRARY AND PURPLE_INCLUDE_DIR)
|
||||
message("Libpurple plugin : yes")
|
||||
include_directories(${PURPLE_INCLUDE_DIR})
|
||||
include_directories(${GLIB2_INCLUDE_DIR})
|
||||
else()
|
||||
message("Libpurple plugin : no (install libpurple)")
|
||||
endif()
|
||||
|
@ -61,6 +63,8 @@ if (PROTOBUF_FOUND)
|
|||
if(IRC_FOUND)
|
||||
ADD_DEFINITIONS(-DIRC_SHARED)
|
||||
message("IRC plugin : yes")
|
||||
include_directories(${IRC_INCLUDE_DIR})
|
||||
include(${QT_USE_FILE})
|
||||
else()
|
||||
message("IRC plugin : no (install libircclient-qt and Google Protocol Buffers)")
|
||||
endif()
|
||||
|
@ -95,13 +99,11 @@ SET(TRANSPORT_VERSION 2.0)
|
|||
SET(PROJECT_VERSION 2.0)
|
||||
include_directories(include)
|
||||
|
||||
include_directories(${PURPLE_INCLUDE_DIR})
|
||||
|
||||
include_directories(${EVENT_INCLUDE_DIRS})
|
||||
include_directories(${GLIB2_INCLUDE_DIR})
|
||||
include_directories(${SWIFTEN_INCLUDE_DIR})
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
include_directories(${IRC_INCLUDE_DIR})
|
||||
include(${QT_USE_FILE})
|
||||
|
||||
|
||||
ADD_SUBDIRECTORY(src)
|
||||
ADD_SUBDIRECTORY(include)
|
||||
|
|
|
@ -6,5 +6,5 @@ ADD_EXECUTABLE(spectrum ${SRC})
|
|||
ADD_DEPENDENCIES(spectrum libpurple_backend)
|
||||
ADD_DEPENDENCIES(spectrum libircclient-qt_backend)
|
||||
|
||||
target_link_libraries(spectrum ${PURPLE_LIBRARY} ${GLIB2_LIBRARIES} ${EVENT_LIBRARIES} transport)
|
||||
target_link_libraries(spectrum transport)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue