mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-27 13:44:11 +08:00
c94547bbc9
This reverts commit 975f049797bcd6b9de0e11f9a926d5ac3ec79ef8. 1 1 Revert "Update QtLoader_inline.cpp" This reverts commit 372dd2dc3e2f23c810f13e51437904fac1422c04. Update QtLoader_inline.cpp Update QtLoader_inline.cpp 1 1 1 Update CMakeLists.txt 1 1
19 lines
766 B
CMake
19 lines
766 B
CMake
if(0) #仅作为参考范例,实际上已经链接到exe中
|
||
add_library(ToClipboard MODULE pluginexample.cpp)
|
||
target_precompile_headers(ToClipboard REUSE_FROM pch)
|
||
set_target_properties(ToClipboard PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/plugin${bitappendix}")
|
||
endif()
|
||
|
||
if(0)
|
||
include(QtUtils.cmake)
|
||
msvc_registry_search()
|
||
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()
|
||
endif() |