CamelCase suffix for find script
This commit is contained in:
parent
ee07fbe596
commit
2e2fced002
|
@ -29,6 +29,7 @@ if(WITH_KDE)
|
|||
endif()
|
||||
|
||||
set(SNORE_SUFFIX "")
|
||||
set(SNORE_CamelCase_SUFFIX "")
|
||||
if(KDE4_FOUND)
|
||||
add_definitions(-DHAVE_KDE ${KDE4_DEFINITIONS} -D_UNICODE)
|
||||
include_directories(${KDE4_INCLUDES})
|
||||
|
@ -42,6 +43,7 @@ else()
|
|||
find_package(Qt5DBus QUIET)
|
||||
include(ECMQt4To5Porting)
|
||||
set(SNORE_SUFFIX "-qt5")
|
||||
set(SNORE_CamelCase_SUFFIX "Qt5")
|
||||
endif()
|
||||
include_directories( ${QT_INCLUDES} )
|
||||
include(NoKDE)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/FindLibsnore.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/FindLibsnore${SNORE_SUFFIX}.cmake" @ONLY)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/FindLibsnore${SNORE_SUFFIX}.cmake" DESTINATION share/apps/cmake/modules)
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/FindLibsnore.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/FindLibsnore${SNORE_CamelCase_SUFFIX}.cmake" @ONLY)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/FindLibsnore${SNORE_CamelCase_SUFFIX}.cmake" DESTINATION share/apps/cmake/modules)
|
||||
|
||||
if(UNIX AND WITH_SNORE_DEAMON)
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/snorenotify.desktop.in" "${CMAKE_CURRENT_BINARY_DIR}/snorenotify.desktop" @ONLY)
|
||||
|
|
Loading…
Reference in New Issue