Add Qt5 option. Use Qt5 by default.
This commit is contained in:
parent
e9c5c563a5
commit
90f23020f5
7 changed files with 55 additions and 32 deletions
7
externals/qhexedit/CMakeLists.txt
vendored
7
externals/qhexedit/CMakeLists.txt
vendored
|
@ -1,4 +1,5 @@
|
|||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
set(SRCS
|
||||
commands.cpp
|
||||
|
@ -10,6 +11,8 @@ set(HEADERS
|
|||
qhexedit.h
|
||||
qhexedit_p.h)
|
||||
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
add_library(qhexedit STATIC ${SRCS} ${HEADERS})
|
||||
if(USE_QT5)
|
||||
target_link_libraries(qhexedit Qt5::Core Qt5::Widgets)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue