#150 Removed use of qt5_use_modules in CMake

1_2_0_dev
Tomatix 10 months ago
parent 1a8d3b12a3
commit 4ff6717820
  1. 2
      ICommand/CMakeLists.txt
  2. 3
      IConfig/CMakeLists.txt
  3. 3
      IWin/CMakeLists.txt
  4. 2
      IdealIRC/CMakeLists.txt
  5. 2
      Resources/CMakeLists.txt
  6. 4
      Script/Builtin/CMakeLists.txt
  7. 3
      Script/CMakeLists.txt
  8. 2
      ScriptDialog/CMakeLists.txt
  9. 2
      ScriptFunctions/CMakeLists.txt
  10. 2
      Widgets/CMakeLists.txt

@ -26,5 +26,5 @@ list(APPEND ${component}_SOURCES_External
)
add_library(${component} STATIC ${${component}_SOURCES} ${${component}_SOURCES_Internal} ${${component}_SOURCES_External})
qt5_use_modules(${component} Widgets)
target_link_libraries(${component} Qt5::Widgets)
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR})

@ -27,6 +27,5 @@ list(APPEND ${component}_SOURCES
)
add_library(${component} STATIC ${${component}_SOURCES})
qt5_use_modules(${component} Widgets)
target_link_libraries(${component} Resources Script)
target_link_libraries(${component} Qt5::Widgets Resources Script)
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR})

@ -16,6 +16,5 @@ list(APPEND ${component}_SOURCES
)
add_library(${component} STATIC ${${component}_SOURCES})
qt5_use_modules(${component} Widgets)
target_link_libraries(${component} IWidgets)
target_link_libraries(${component} Qt5::Widgets IWidgets)
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR})

@ -46,8 +46,8 @@ if (MSVC)
set_property(TARGET ${component} PROPERTY WIN32_EXECUTABLE true)
endif()
qt5_use_modules(${component} Widgets)
target_link_libraries(${component}
Qt5::Widgets
ICommand
IConfig
IRCClient

@ -3,5 +3,5 @@ set(component "Resources")
qt5_add_resources(${component}_SOURCES ${IIRC_SOURCE_DIR}/Resources/resources.qrc)
add_library(${component} STATIC ${${component}_SOURCES})
qt5_use_modules(${component} Core)
target_link_libraries(${component} Qt5::Core)
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR})

@ -20,8 +20,10 @@ list(APPEND ${component}_SOURCES
)
add_library(${component} STATIC ${${component}_SOURCES})
qt5_use_modules(${component} Core)
if (UNIX)
target_link_libraries(${component} m)
endif()
target_link_libraries(${component} Qt5::Core)
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR})

@ -32,6 +32,5 @@ list(APPEND ${component}_SOURCES
)
add_library(${component} STATIC ${${component}_SOURCES})
qt5_use_modules(${component} Widgets)
target_link_libraries(${component} ScriptBuiltinFunctions Resources)
target_link_libraries(${component} Qt5::Widgets ScriptBuiltinFunctions Resources)
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR})

@ -6,5 +6,5 @@ list(APPEND ${component}_SOURCES
)
add_library(${component} STATIC ${${component}_SOURCES})
qt5_use_modules(${component} Widgets)
target_link_libraries(${component} Qt5::Widgets)
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR})

@ -10,5 +10,5 @@ list(APPEND ${component}_SOURCES
)
add_library(${component} STATIC ${${component}_SOURCES})
qt5_use_modules(${component} Widgets)
target_link_libraries(${component} Qt5::Widgets)
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR})

@ -10,5 +10,5 @@ list(APPEND ${component}_SOURCES
)
add_library(${component} STATIC ${${component}_SOURCES})
qt5_use_modules(${component} Widgets)
target_link_libraries(${component} Qt5::Widgets)
target_include_directories(${component} PRIVATE ${CMAKE_SOURCE_DIR})

Loading…
Cancel
Save