CMakeLists.txt 861 Bytes
Newer Older
1 2
project(ksirk)

3 4 5 6
if(NOT COMPILING_KDEGAMES)
	find_package(KDE4 REQUIRED)
	include(KDE4Defaults)
	include(MacroLibrary)
7
	find_package(KDEGames 4.9.0 REQUIRED)
8 9 10 11
	find_package(QCA2 REQUIRED)

	add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
	add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
12
	include_directories(${KDEGAMES_INCLUDE_DIRS} ${KDE4_INCLUDES} ${QDBUS_INCLUDE_DIRS})
13 14 15 16 17

	macro_log_feature(QCA2_FOUND "QCA2" "Qt Cryptographic Architecture" "http://delta.affinix.com/qca" TRUE "2.0.0" "Needed to build Ksirk Jabber support's GroupWise and Jabberprotocols.")
	macro_display_feature_log()
endif(NOT COMPILING_KDEGAMES)

18
KDE4_NO_ENABLE_FINAL(ksirk)
19
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
20 21 22 23

remove_definitions(-DQT_NO_STL) 

add_subdirectory(ksirk)
24
add_subdirectory(ksirkskineditor)
25
add_subdirectory(doc)