From dab960778452211e15b4ea45c60b82973c468129 Mon Sep 17 00:00:00 2001 From: Hoa Dinh Date: Tue, 11 Nov 2014 17:31:32 -0800 Subject: build for GTK --- tests/CMakeLists.txt | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'tests/CMakeLists.txt') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 289feb82..58bdcf70 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,14 +1,17 @@ -include_directories(${CMAKE_CURRENT_BINARY_DIR}/../src/include) +pkg_check_modules (GLIB2 glib-2.0) + +include_directories(${CMAKE_CURRENT_BINARY_DIR}/../src/include ${GLIB2_INCLUDE_DIRS}) link_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../Externals/ctemplate-osx/lib ${CMAKE_CURRENT_SOURCE_DIR}/../Externals/uchardet-osx/lib ${CMAKE_CURRENT_SOURCE_DIR}/../Externals/libetpan-osx/lib ) -find_library(FOUNDATIONFRAMEWORK NAMES Foundation) -find_library(SECURITYFRAMEWORK NAMES Security) -find_library(CORESERVICESFRAMEWORK NAMES CoreServices) +#find_library(FOUNDATIONFRAMEWORK NAMES Foundation) +#find_library(SECURITYFRAMEWORK NAMES Security) +#find_library(CORESERVICESFRAMEWORK NAMES CoreServices) + +add_executable (tests main.cpp) +target_link_libraries (tests MailCore z etpan xml2 uchardet sasl2 tidy ctemplate ssl crypto pthread icudata icui18n icuio icule iculx icutest icutu icuuc uuid ${GLIB2_LIBRARIES}) + -add_executable (tests main.mm test-all.mm) -target_link_libraries (tests MailCore z etpan xml2 uchardet sasl2 iconv tidy ctemplate ssl crypto - ${FOUNDATIONFRAMEWORK} ${SECURITYFRAMEWORK} ${CORESERVICESFRAMEWORK}) -- cgit v1.2.3