Changeset - 0b0f016e4934
[Not reviewed]
0 1 0
HanzZ - 13 years ago 2012-09-04 18:30:49
hanzz.k@gmail.com
Use win32 specific libs in SWIFTEN_LIBRARY
1 file changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
CMakeLists.txt
Show inline comments
 
@@ -84,53 +84,53 @@ endif()
 
# FIND POPT
 
if (NOT WIN32)
 
	set(popt_DIR "${CMAKE_SOURCE_DIR}/cmake_modules")
 
	find_package(popt)
 
endif()
 

	
 
# FIND LIBEVENT
 
set(event_DIR "${CMAKE_SOURCE_DIR}/cmake_modules")
 
find_package(event)
 

	
 
# FIND SWIFTEN
 
if(WIN32 AND SWIFTEN_LIBRARY AND SWIFTEN_INCLUDE_DIR )
 
	if (ZLIB_LIBRARY)
 
		set(SWIFTEN_LIBRARY ${SWIFTEN_LIBRARY} ${ZLIB_LIBRARY})
 
	endif()
 
	if (EXPAT_LIBRARY)
 
		set(SWIFTEN_LIBRARY ${SWIFTEN_LIBRARY} ${EXPAT_LIBRARY})
 
	endif()
 
	if (LIBIDN_LIBRARY)
 
		set(SWIFTEN_LIBRARY ${SWIFTEN_LIBRARY} ${LIBIDN_LIBRARY})
 
	endif()
 
	if (LIBXML_LIBRARY)
 
		set(SWIFTEN_LIBRARY ${SWIFTEN_LIBRARY} ${LIBXML_LIBRARY})
 
	endif()
 
	set(SWIFTEN_LIBRARY Dnsapi)
 
	set(SWIFTEN_LIBRARY Crypt32)
 
	set(SWIFTEN_LIBRARY Secur32)
 
	set(SWIFTEN_LIBRARY Iphlpapi)
 
	set(SWIFTEN_LIBRARY Winscard)
 
	set(SWIFTEN_LIBRARY "Dnsapi")
 
	set(SWIFTEN_LIBRARY "Crypt32")
 
	set(SWIFTEN_LIBRARY "Secur32")
 
	set(SWIFTEN_LIBRARY "Iphlpapi")
 
	set(SWIFTEN_LIBRARY "Winscard")
 
	message(STATUS "Using swiften: ${SWIFTEN_INCLUDE_DIR} ${SWIFTEN_LIBRARY}")
 
else()
 
	set(Swiften_DIR "${CMAKE_SOURCE_DIR}/cmake_modules")
 
	find_package(Swiften)
 
endif()
 

	
 
if (WIN32)
 
	add_definitions(-DSWIFTEN_STATIC=1)
 
	ADD_DEFINITIONS(-D_UNICODE)
 
	ADD_DEFINITIONS(-DUNICODE)
 
endif()
 

	
 

	
 
if (CMAKE_COMPILER_IS_GNUCXX)
 
set(openssl_DIR "${CMAKE_SOURCE_DIR}/cmake_modules")
 
find_package(openssl)
 
endif()
 

	
 
# FIND BOOST
 
set(Boost_DIR "${CMAKE_SOURCE_DIR}/cmake_modules")
 
if (WIN32)
 
	if (BOOST_VERSION)
 
		set(Boost_USE_STATIC_LIBS      ON)
 
		set(Boost_USE_MULTITHREADED      ON)
0 comments (0 inline, 0 general)