fix some cmake fuckups

This commit is contained in:
Akash Mozumdar 2019-06-10 13:58:19 -04:00
parent ae0398a243
commit c5a6e16488
3 changed files with 12 additions and 12 deletions

View File

@ -57,7 +57,7 @@ endmacro()
macro(find_qt5) macro(find_qt5)
set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON) #set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOUIC ON)
add_definitions(-DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x060000) add_definitions(-DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
find_package(Qt5 COMPONENTS ${ARGN}) find_package(Qt5 COMPONENTS ${ARGN})

View File

@ -4,16 +4,16 @@ find_qt5(Core Widgets)
cmake_policy(SET CMP0037 OLD) cmake_policy(SET CMP0037 OLD)
add_library(Bing\ Translate SHARED bingtranslate.cpp extensionimpl.cpp) add_library(Bing\ Translate MODULE bingtranslate.cpp extensionimpl.cpp)
add_library(Copy\ to\ Clipboard SHARED copyclipboard.cpp extensionimpl.cpp) add_library(Copy\ to\ Clipboard MODULE copyclipboard.cpp extensionimpl.cpp)
add_library(Extra\ Newlines SHARED extranewlines.cpp extensionimpl.cpp) add_library(Extra\ Newlines MODULE extranewlines.cpp extensionimpl.cpp)
add_library(Extra\ Window SHARED extrawindow.cpp extensionimpl.cpp) add_library(Extra\ Window MODULE extrawindow.cpp extensionimpl.cpp)
add_library(Google\ Translate SHARED googletranslate.cpp extensionimpl.cpp) add_library(Google\ Translate MODULE googletranslate.cpp extensionimpl.cpp)
add_library(Lua SHARED lua.cpp extensionimpl.cpp) add_library(Lua MODULE lua.cpp extensionimpl.cpp)
add_library(Regex\ Filter SHARED regexfilter.cpp extensionimpl.cpp) add_library(Regex\ Filter MODULE regexfilter.cpp extensionimpl.cpp)
add_library(Remove\ Repetition SHARED removerepeat.cpp extensionimpl.cpp) add_library(Remove\ Repetition MODULE removerepeat.cpp extensionimpl.cpp)
add_library(Replacer SHARED replacer.cpp extensionimpl.cpp) add_library(Replacer MODULE replacer.cpp extensionimpl.cpp)
add_library(Thread\ Linker SHARED threadlinker.cpp extensionimpl.cpp) add_library(Thread\ Linker MODULE threadlinker.cpp extensionimpl.cpp)
add_executable(Extension_Tests extensiontester.cpp) add_executable(Extension_Tests extensiontester.cpp)

View File

@ -27,6 +27,6 @@ set(texthook_src
) )
endif() endif()
add_library(texthook SHARED ${texthook_src}) add_library(texthook MODULE ${texthook_src})
target_link_libraries(texthook minhook) target_link_libraries(texthook minhook)