From f76e8e065f8a8228086e25f709953267cefd2914 Mon Sep 17 00:00:00 2001 From: Christoph Schleifenbaum Date: Thu, 5 Nov 2009 11:35:50 +0000 Subject: [PATCH 17/33] Compile and link on Mac svn path=/trunk/kdesupport/automoc/; revision=1045135 --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 04e5fa7..43e225a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,8 @@ cmake_minimum_required(VERSION 2.4.5 FATAL_ERROR) include(CTest) -find_package(Qt4 REQUIRED) +find_package(Qt4 REQUIRED COMPONENTS QtCore ) +include(${QT_USE_FILE}) if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_C_COMPILER MATCHES "icc") set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common") @@ -26,7 +27,7 @@ add_executable(automoc4 kde4automoc.cpp) set_target_properties(automoc4 PROPERTIES SKIP_BUILD_RPATH FALSE INSTALL_RPATH_USE_LINK_PATH TRUE ) -target_link_libraries(automoc4 ${QT_QTCORE_LIBRARY}) +target_link_libraries(automoc4 ${QT_LIBRARIES}) install(TARGETS automoc4 DESTINATION bin) install(FILES Automoc4Config.cmake Automoc4Version.cmake automoc4.files.in DESTINATION lib${LIB_SUFFIX}/automoc4) -- 2.4.3