summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt64
1 files changed, 20 insertions, 44 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 09783c880..56798bf00 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -90,22 +90,33 @@ add_subdirectory(agent)
install(
FILES
-## includes/PolkitTQt/Authority
-## includes/PolkitTQt/Details
-## includes/PolkitTQt/Identity
+ includes/PolkitTQt/Authority
+ includes/PolkitTQt/Details
+ includes/PolkitTQt/Identity
includes/PolkitTQt/Subject
-## includes/PolkitTQt/TemporaryAuthorization
-## includes/PolkitTQt/ActionDescription
+ includes/PolkitTQt/TemporaryAuthorization
+ includes/PolkitTQt/ActionDescription
DESTINATION
${INCLUDE_INSTALL_DIR}/PolkitTQt )
+install(
+ FILES
+ polkit-tqt-export.h
+## gui/polkittqt1-gui-action.h
+## gui/polkittqt1-gui-actionbutton.h
+## gui/polkittqt1-gui-actionbuttons.h
+##
+## agent/polkittqt1-agent-listener.h
+## agent/polkittqt1-agent-session.h
+##
+## ${CMAKE_CURRENT_BINARY_DIR}/polkittqt1-version.h
+##
+ DESTINATION
+ ${INCLUDE_INSTALL_DIR} )
-## find_package(Qt4 REQUIRED)
## find_package(GObject REQUIRED)
## find_package(GIO REQUIRED)
##
-## add_definitions(-DTQT_NO_KEYWORDS)
-##
## include (${TQT_USE_FILE})
## include (InstallSettings)
## include (MacroWriteBasicCMakeVersionFile)
@@ -123,17 +134,6 @@ install(
## ${TQT_TQTXML_INCLUDE_DIR}
## )
##
-## # Check for older polkit
-## set(CMAKE_REQUIRED_INCLUDES ${POLKIT_INCLUDE_DIR} ${POLKIT_AGENT_INCLUDE_DIR})
-## set(CMAKE_REQUIRED_LIBRARIES ${POLKIT_LIBRARIES} ${POLKIT_AGENT_LIBRARY})
-## check_function_exists(polkit_agent_listener_register HAVE_POLKIT_AGENT_LISTENER_REGISTER)
-## check_function_exists(polkit_authority_get_sync HAVE_POLKIT_AUTHORITY_GET_SYNC)
-##
-## if (NOT HAVE_POLKIT_AGENT_LISTENER_REGISTER OR NOT HAVE_POLKIT_AUTHORITY_GET_SYNC)
-## message(STATUS "You have an older polkit-1 version: Polkit-TQt-1 will be built in compatibility mode")
-## add_definitions(-DPOLKIT_TQT_1_COMPATIBILITY_MODE)
-## endif (NOT HAVE_POLKIT_AGENT_LISTENER_REGISTER OR NOT HAVE_POLKIT_AUTHORITY_GET_SYNC)
-##
## if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.6.2)
## option(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR "Prefer to install the <package>Config.cmake files to lib/cmake/<package> instead of lib/<package>/cmake" TRUE)
## endif(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.6.2)
@@ -150,13 +150,6 @@ install(
## gui/polkittqt1-gui-actionbutton.h
## gui/polkittqt1-gui-actionbuttons.h
##
-## core/polkittqt1-authority.h
-## core/polkittqt1-details.h
-## core/polkittqt1-identity.h
-## core/polkittqt1-subject.h
-## core/polkittqt1-temporaryauthorization.h
-## core/polkittqt1-actiondescription.h
-##
## agent/polkittqt1-agent-listener.h
## agent/polkittqt1-agent-session.h
##
@@ -179,20 +172,6 @@ install(
## DESTINATION
## ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitTQt1/Agent )
##
-## if(NOT WIN32)
-## # Pkgconfig
-## configure_file(${CMAKE_CURRENT_SOURCE_DIR}/polkit-qt-1.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/polkit-qt-1.pc @ONLY)
-## install(FILES ${CMAKE_CURRENT_BINARY_DIR}/polkit-qt-1.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig )
-## configure_file(${CMAKE_CURRENT_SOURCE_DIR}/polkit-qt-core-1.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/polkit-qt-core-1.pc
-## @ONLY)
-## install(FILES ${CMAKE_CURRENT_BINARY_DIR}/polkit-qt-core-1.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig )
-## configure_file(${CMAKE_CURRENT_SOURCE_DIR}/polkit-qt-gui-1.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/polkit-qt-gui-1.pc @ONLY)
-## install(FILES ${CMAKE_CURRENT_BINARY_DIR}/polkit-qt-gui-1.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig )
-## configure_file(${CMAKE_CURRENT_SOURCE_DIR}/polkit-qt-agent-1.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/polkit-qt-agent-1.pc
-## @ONLY)
-## install(FILES ${CMAKE_CURRENT_BINARY_DIR}/polkit-qt-agent-1.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig )
-## endif(NOT WIN32)
-##
## # CMake Config files
## configure_file(PolkitTQt-1Config.cmake.in "${CMAKE_BINARY_DIR}/PolkitTQt-1Config.cmake" @ONLY)
##
@@ -221,7 +200,4 @@ install(
## if (BUILD_TEST)
## add_subdirectory(test)
## endif (BUILD_TEST)
-##
-##
-## # Always last!
-## include (PolkitTQt-1Dist)
+