Changeset - c80a2843f9c1
[Not reviewed]
0 1 0
HanzZ - 14 years ago 2011-05-14 19:05:41
hanzz.k@gmail.com
better cmake output
1 file changed with 17 insertions and 11 deletions:
0 comments (0 inline, 0 general)
CMakeLists.txt
Show inline comments
 
@@ -26,29 +26,35 @@ find_package(Boost COMPONENTS date_time system filesystem program_options regex
 

	
 
set(Protobuf_DIR "${CMAKE_SOURCE_DIR}/cmake_modules")
 
find_package(Protobuf REQUIRED)
 

	
 
find_package(Doxygen)
 

	
 
message("Supported features")
 
message("------------------")
 
message("  Supported features")
 
message("-----------------------")
 
if (SQLITE3_FOUND)
 
	ADD_DEFINITIONS(-DWITH_SQLITE)
 
	include_directories(SQLITE3_INCLUDE_DIR)
 
	message("SQLite3      : yes")
 
	message("SQLite3           : yes")
 
else (SQLITE3_FOUND)
 
	set(SQLITE3_LIBRARIES "")
 
	message("SQLite3      : no")
 
	message("SQLite3           : no")
 
endif (SQLITE3_FOUND)
 

	
 
if (PROTOBUF_FOUND)
 
	ADD_DEFINITIONS(-DWITH_PROTOBUF)
 
	include_directories(${PROTOBUF_INCLUDE_DIRS})
 
	message("Spectrum Java/Python network protocol : yes")
 
	message("Network plugins   : yes")
 
else()
 
	message("Spectrum Java/Python network protocol : no (install Google Protocol Buffers)")
 
	message("Network plugins   : no (install Google Protocol Buffers)")
 
endif()
 

	
 
if(PURPLE_LIBRARY AND PURPLE_INCLUDE_DIR AND PROTOBUF_FOUND)
 
	message("Libpurple backend : yes")
 
else()
 
	message("Libpurple backend : no (install libpurple and Google Protocol Buffers)")
 
endif()
 

	
 
if(CMAKE_BUILD_TYPE MATCHES Debug)
 
	ADD_DEFINITIONS(-ggdb)
 
	ADD_DEFINITIONS(-DDEBUG)
 
	ADD_DEFINITIONS(-Wall)
 
@@ -59,15 +65,15 @@ if(CMAKE_BUILD_TYPE MATCHES Debug)
 
	ADD_DEFINITIONS(-Wmissing-declarations)
 
	ADD_DEFINITIONS(-Wpointer-arith)
 
	ADD_DEFINITIONS(-Wreorder)
 
	ADD_DEFINITIONS(-Woverloaded-virtual)
 
	ADD_DEFINITIONS(-Wsign-promo)
 
	ADD_DEFINITIONS(-Wundef -Wunused)
 
	message("Debug        : yes")
 
	message("Debug             : yes")
 
else(CMAKE_BUILD_TYPE MATCHES Debug)
 
	message("Debug        : no")
 
	message("Debug             : no")
 
endif(CMAKE_BUILD_TYPE MATCHES Debug)
 

	
 

	
 
SET(TRANSPORT_VERSION 2.0)
 
SET(PROJECT_VERSION 2.0)
 
include_directories(include)
 
@@ -82,13 +88,13 @@ ADD_SUBDIRECTORY(src)
 
ADD_SUBDIRECTORY(include)
 
ADD_SUBDIRECTORY(examples)
 
ADD_SUBDIRECTORY(spectrum)
 
ADD_SUBDIRECTORY(backends)
 

	
 
if(DOXYGEN_FOUND)
 
	message("Docs         : yes")
 
	message("Docs              : yes")
 
	ADD_SUBDIRECTORY(docs)
 
else(DOXYGEN_FOUND)
 
	message("Docs         : no")
 
	message("Docs              : no")
 
endif(DOXYGEN_FOUND)
 

	
 
message("------------------")
 
message("----------------------")
0 comments (0 inline, 0 general)