Changeset - 066f09f03aa0
[Not reviewed]
0 2 0
HanzZ - 14 years ago 2011-05-20 10:23:48
hanzz.k@gmail.com
better cmake
2 files changed with 7 insertions and 5 deletions:
0 comments (0 inline, 0 general)
CMakeLists.txt
Show inline comments
 
@@ -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)
spectrum/src/CMakeLists.txt
Show inline comments
 
@@ -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)
 
0 comments (0 inline, 0 general)