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 10 insertions and 4 deletions:
0 comments (0 inline, 0 general)
CMakeLists.txt
Show inline comments
 
@@ -27,28 +27,34 @@ 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("-----------------------")
 
if (SQLITE3_FOUND)
 
	ADD_DEFINITIONS(-DWITH_SQLITE)
 
	include_directories(SQLITE3_INCLUDE_DIR)
 
	message("SQLite3           : yes")
 
else (SQLITE3_FOUND)
 
	set(SQLITE3_LIBRARIES "")
 
	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)
 
@@ -88,7 +94,7 @@ if(DOXYGEN_FOUND)
 
	message("Docs              : yes")
 
	ADD_SUBDIRECTORY(docs)
 
else(DOXYGEN_FOUND)
 
	message("Docs              : no")
 
endif(DOXYGEN_FOUND)
 

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