generic: minor KDE4Macros cleanup and remove deprecated MacroKAuth CMake module

This commit is contained in:
Ivailo Monev 2015-01-23 18:51:39 +00:00
parent 004e949a0f
commit f647d645c1
3 changed files with 12 additions and 18 deletions

View file

@ -115,7 +115,6 @@ set(cmakeFiles
MacroBoolTo01.cmake MacroBoolTo01.cmake
MacroEnsureOutOfSourceBuild.cmake MacroEnsureOutOfSourceBuild.cmake
MacroEnsureVersion.cmake MacroEnsureVersion.cmake
MacroKAuth.cmake
MacroLibrary.cmake MacroLibrary.cmake
MacroLogFeature.cmake MacroLogFeature.cmake
MacroOptionalAddSubdirectory.cmake MacroOptionalAddSubdirectory.cmake

View file

@ -756,17 +756,15 @@ macro (KDE4_ADD_UNIT_TEST _test_NAME)
# add_test( ${_targetName} ${EXECUTABLE_OUTPUT_PATH}/${_test_NAME} -xml -o ${_test_NAME}.tml ) # add_test( ${_targetName} ${EXECUTABLE_OUTPUT_PATH}/${_test_NAME} -xml -o ${_test_NAME}.tml )
if (NOT MSVC_IDE) #not needed for the ide # if the tests are EXCLUDE_FROM_ALL, add a target "buildtests" to build all tests
# if the tests are EXCLUDE_FROM_ALL, add a target "buildtests" to build all tests if (NOT KDE4_BUILD_TESTS)
if (NOT KDE4_BUILD_TESTS) get_directory_property(_buildtestsAdded BUILDTESTS_ADDED)
get_directory_property(_buildtestsAdded BUILDTESTS_ADDED) if(NOT _buildtestsAdded)
if(NOT _buildtestsAdded) add_custom_target(buildtests)
add_custom_target(buildtests) set_directory_properties(PROPERTIES BUILDTESTS_ADDED TRUE)
set_directory_properties(PROPERTIES BUILDTESTS_ADDED TRUE) endif(NOT _buildtestsAdded)
endif(NOT _buildtestsAdded) add_dependencies(buildtests ${_test_NAME})
add_dependencies(buildtests ${_test_NAME}) endif (NOT KDE4_BUILD_TESTS)
endif (NOT KDE4_BUILD_TESTS)
endif (NOT MSVC_IDE)
endmacro (KDE4_ADD_UNIT_TEST) endmacro (KDE4_ADD_UNIT_TEST)

View file

@ -1,3 +0,0 @@
message(FATAL_ERROR "Don't include(MacroKAuth) anymore, it's now included in find_package(KDE4). This file will be removed soon, and will not appear in KDE 4.4 release.")