diff -Naur a/cmake/kColorPickerConfig.cmake.in b/cmake/kColorPickerConfig.cmake.in
--- a/cmake/kColorPickerConfig.cmake.in	2024-03-01 21:47:22.000000000 +0600
+++ b/cmake/kColorPickerConfig.cmake.in	1970-01-01 06:00:00.000000000 +0600
@@ -1,9 +0,0 @@
-include(CMakeFindDependencyMacro)
-
-@PACKAGE_INIT@
-
-find_dependency(Qt@QT_MAJOR_VERSION@ @QT_MIN_VERSION@ COMPONENTS Widgets)
-
-if(NOT TARGET kColorPicker::kColorPicker)
-  include("${CMAKE_CURRENT_LIST_DIR}/kColorPicker-targets.cmake")
-endif()
diff -Naur a/cmake/kColorPicker-Qt5Config.cmake.in b/cmake/kColorPicker-Qt5Config.cmake.in
--- a/cmake/kColorPicker-Qt5Config.cmake.in	1970-01-01 06:00:00.000000000 +0600
+++ b/cmake/kColorPicker-Qt5Config.cmake.in	2024-08-08 11:01:51.973202565 +0600
@@ -0,0 +1,9 @@
+include(CMakeFindDependencyMacro)
+
+@PACKAGE_INIT@
+
+find_dependency(Qt5 @QT_MIN_VERSION@ COMPONENTS Widgets)
+
+if(NOT TARGET kColorPicker::kColorPicker-Qt5)
+  include("${CMAKE_CURRENT_LIST_DIR}/kColorPicker-Qt5-targets.cmake")
+endif()
diff -Naur a/cmake/kColorPicker-Qt6Config.cmake.in b/cmake/kColorPicker-Qt6Config.cmake.in
--- a/cmake/kColorPicker-Qt6Config.cmake.in	1970-01-01 06:00:00.000000000 +0600
+++ b/cmake/kColorPicker-Qt6Config.cmake.in	2024-08-08 11:01:51.973202565 +0600
@@ -0,0 +1,9 @@
+include(CMakeFindDependencyMacro)
+
+@PACKAGE_INIT@
+
+find_dependency(Qt6 @QT_MIN_VERSION@ COMPONENTS Widgets)
+
+if(NOT TARGET kColorPicker::kColorPicker-Qt6)
+  include("${CMAKE_CURRENT_LIST_DIR}/kColorPicker-Qt6-targets.cmake")
+endif()
diff -Naur a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt	2024-03-01 21:47:22.000000000 +0600
+++ b/CMakeLists.txt	2024-08-08 11:01:51.973202565 +0600
@@ -3,7 +3,7 @@
 
 set(QT_MIN_VERSION 5.15.2)
 
-set(CMAKE_CXX_STANDARD 17)
+set(CMAKE_CXX_STANDARD 11)
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
 set(CMAKE_CXX_EXTENSIONS OFF)
 
@@ -15,9 +15,12 @@
 
 option(BUILD_WITH_QT6 "Build with Qt6" OFF)
 if(BUILD_WITH_QT6)
+    set(CMAKE_CXX_STANDARD 17)
     set(QT_MAJOR_VERSION 6)
+    set(kColorPicker_LIB_NAME "kColorPicker-Qt6")
 else()
     set(QT_MAJOR_VERSION 5)
+    set(kColorPicker_LIB_NAME "kColorPicker-Qt5")
 endif()
 
 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED Widgets)
@@ -41,24 +44,26 @@
 
 include(CMakePackageConfigHelpers)
 
-add_library(kColorPicker
+add_library(${kColorPicker_LIB_NAME}
 			${KCOLORPICKER_SRCS}
 			${CMAKE_CURRENT_SOURCE_DIR}/include/kColorPicker/KColorPicker.h
 			${CMAKE_CURRENT_SOURCE_DIR}/icons/kColorPicker_icons.qrc
 			)
 
-target_include_directories(kColorPicker
+#add_library(kColorPicker::kColorPicker ALIAS kColorPicker)
+
+target_include_directories(${kColorPicker_LIB_NAME}
 						   PUBLIC
 						   $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
 						   $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
-						   $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/kColorPicker-Qt${QT_MAJOR_VERSION}>
+						   $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>/${kColorPicker_LIB_NAME}
 						   )
 
-target_link_libraries(kColorPicker PUBLIC Qt${QT_MAJOR_VERSION}::Widgets)
+target_link_libraries(${kColorPicker_LIB_NAME} PUBLIC Qt${QT_MAJOR_VERSION}::Widgets)
 
-target_compile_definitions(kColorPicker PRIVATE KIMAGEANNOTATOR_LIB)
+target_compile_definitions(${kColorPicker_LIB_NAME} PRIVATE KIMAGEANNOTATOR_LIB)
 
-set_target_properties(kColorPicker
+set_target_properties(${kColorPicker_LIB_NAME}
 					  PROPERTIES
 					  ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib
 					  LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib
@@ -67,43 +72,43 @@
 					  SOVERSION 0
 					  )
 
-install(TARGETS kColorPicker
-		EXPORT kColorPicker-targets
+install(TARGETS ${kColorPicker_LIB_NAME}
+		EXPORT ${kColorPicker_LIB_NAME}-targets
 		ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
 		LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
 		RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
 		)
 
 install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/kColorPicker
-		DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/kColorPicker-Qt${QT_MAJOR_VERSION}
+		DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${kColorPicker_LIB_NAME}
 		)
 
-configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/kColorPickerConfig.cmake.in
-                              ${CMAKE_CURRENT_BINARY_DIR}/cmake/kColorPicker-Qt${QT_MAJOR_VERSION}Config.cmake
-                              INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/kColorPicker-Qt${QT_MAJOR_VERSION}
+configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/${kColorPicker_LIB_NAME}Config.cmake.in
+                              ${CMAKE_CURRENT_BINARY_DIR}/cmake/${kColorPicker_LIB_NAME}Config.cmake
+                              INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${kColorPicker_LIB_NAME}
                               )
 
-write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/cmake/kColorPicker-Qt${QT_MAJOR_VERSION}Config-version.cmake
+write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/cmake/${kColorPicker_LIB_NAME}Config-version.cmake
                                  VERSION ${PROJECT_VERSION}
                                  COMPATIBILITY AnyNewerVersion
                                  )
 
 install(FILES
-        ${CMAKE_CURRENT_BINARY_DIR}/cmake/kColorPicker-Qt${QT_MAJOR_VERSION}Config.cmake
-        ${CMAKE_CURRENT_BINARY_DIR}/cmake/kColorPicker-Qt${QT_MAJOR_VERSION}Config-version.cmake
-        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/kColorPicker-Qt${QT_MAJOR_VERSION}
+        ${CMAKE_CURRENT_BINARY_DIR}/cmake/${kColorPicker_LIB_NAME}Config.cmake
+        ${CMAKE_CURRENT_BINARY_DIR}/cmake/${kColorPicker_LIB_NAME}Config-version.cmake
+        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${kColorPicker_LIB_NAME}
         )
 
 
-export(EXPORT kColorPicker-targets
-       FILE ${CMAKE_CURRENT_BINARY_DIR}/cmake/kColorPicker-Qt${QT_MAJOR_VERSION}-targets.cmake
+export(EXPORT ${kColorPicker_LIB_NAME}-targets
+       FILE ${CMAKE_CURRENT_BINARY_DIR}/cmake/${kColorPicker_LIB_NAME}-targets.cmake
        NAMESPACE kColorPicker::
        )
 
-install(EXPORT kColorPicker-targets
-        FILE kColorPicker-targets.cmake
+install(EXPORT ${kColorPicker_LIB_NAME}-targets
+        FILE ${kColorPicker_LIB_NAME}-targets.cmake
         NAMESPACE kColorPicker::
-        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/kColorPicker-Qt${QT_MAJOR_VERSION}
+        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${kColorPicker_LIB_NAME}
         )
         
 # uninstall target
diff -Naur a/example/CMakeLists.txt b/example/CMakeLists.txt
--- a/example/CMakeLists.txt	2024-03-01 21:47:22.000000000 +0600
+++ b/example/CMakeLists.txt	2024-08-08 11:01:51.973202565 +0600
@@ -1,3 +1,3 @@
 add_executable(kColorPicker-example main.cpp)
 
-target_link_libraries(kColorPicker-example kColorPicker)
+target_link_libraries(kColorPicker-example ${kColorPicker_LIB_NAME})
diff -Naur a/README.md b/README.md
--- a/README.md	2024-03-01 21:47:22.000000000 +0600
+++ b/README.md	2024-08-08 11:01:51.973202565 +0600
@@ -36,8 +36,11 @@
     to build with Qt6:  
     `find_package(kColorPicker-Qt6 ${KCOLORPICKER_MIN_VERSION} REQUIRED)`  
 
-2. Link the library with your application 
-    `target_link_libraries(myApp kColorPicker)`  
+2. Link the library with your application  
+    if you built with Qt5:  
+    `target_link_libraries(myApp kColorPicker-Qt5)`  
+    if you built with Qt6:  
+    `target_link_libraries(myApp kColorPicker-Qt6)`  
 
 
 [github-badge]:        https://github.com/ksnip/kColorPicker/actions/workflows/build.yml/badge.svg
