mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-24 04:04:14 +08:00
Update CMakeLists.txt
This commit is contained in:
parent
c275788ceb
commit
c82f030165
@ -7,10 +7,12 @@ endif()
|
||||
|
||||
include(QtUtils.cmake)
|
||||
msvc_registry_search()
|
||||
find_qt5(Core Widgets)
|
||||
#set(CMAKE_AUTOMOC ON)
|
||||
add_library(QtLoader MODULE QtLoader.cpp)
|
||||
#qt5_wrap_cpp(MOC_SOURCES QtLoader.h)
|
||||
#target_sources(QtLoader PRIVATE ${MOC_SOURCES})
|
||||
target_link_libraries(QtLoader Qt5::Widgets Qt5::Core)
|
||||
set_target_properties(QtLoader PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/plugin${bitappendix}")
|
||||
if(Qt5_DIR)
|
||||
find_qt5(Core Widgets)
|
||||
#set(CMAKE_AUTOMOC ON)
|
||||
add_library(QtLoader MODULE QtLoader.cpp)
|
||||
#qt5_wrap_cpp(MOC_SOURCES QtLoader.h)
|
||||
#target_sources(QtLoader PRIVATE ${MOC_SOURCES})
|
||||
target_link_libraries(QtLoader Qt5::Widgets Qt5::Core)
|
||||
set_target_properties(QtLoader PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/plugin${bitappendix}")
|
||||
endif()
|
Loading…
x
Reference in New Issue
Block a user