clean up
This commit is contained in:
parent
f5de113c9a
commit
b3f9e3230e
|
@ -67,7 +67,7 @@ option(
|
||||||
OFF
|
OFF
|
||||||
)
|
)
|
||||||
|
|
||||||
if(QTK_DEBUG OR CMAKE_BUILD_TYPE MATCHES "[Dd][Ee][Bb][Uu][Gg]")
|
if(QTK_DEBUG OR CMAKE_BUILD_TYPE MATCHES "^[Dd][Ee][Bb][Uu][Gg]$")
|
||||||
set(QTK_DEBUG ON)
|
set(QTK_DEBUG ON)
|
||||||
set(CMAKE_BUILD_TYPE Debug)
|
set(CMAKE_BUILD_TYPE Debug)
|
||||||
else()
|
else()
|
||||||
|
@ -111,12 +111,6 @@ if(NOT Qt6_FOUND)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# TODO: This might be a bit strange and needs more testing.
|
|
||||||
if (QTK_PREFIX_QTCREATOR)
|
|
||||||
set(CMAKE_INSTALL_PREFIX "${QT_INSTALL_DIR}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# To use custom plugins, set QT_PLUGIN_PATH environment variable before running designer
|
# To use custom plugins, set QT_PLUGIN_PATH environment variable before running designer
|
||||||
# Or, we can install plugins to the designer for use across all projects.
|
# Or, we can install plugins to the designer for use across all projects.
|
||||||
|
@ -137,8 +131,9 @@ set(
|
||||||
set(
|
set(
|
||||||
VAR_PATHS
|
VAR_PATHS
|
||||||
CMAKE_PREFIX_PATH CMAKE_INSTALL_PREFIX QTK_PLUGIN_INSTALL_DIR QT6_INSTALL_PREFIX
|
CMAKE_PREFIX_PATH CMAKE_INSTALL_PREFIX QTK_PLUGIN_INSTALL_DIR QT6_INSTALL_PREFIX
|
||||||
QT_INSTALL_DIR QT6_INSTALL_PLUGINS
|
QT_INSTALL_DIR
|
||||||
)
|
)
|
||||||
|
list(APPEND VAR_NAMES QT6_INSTALL_PLUGINS)
|
||||||
|
|
||||||
# Find Assimp.
|
# Find Assimp.
|
||||||
if(QTK_SUBMODULES)
|
if(QTK_SUBMODULES)
|
||||||
|
|
|
@ -32,7 +32,7 @@ install(
|
||||||
FILE_SET HEADERS DESTINATION include
|
FILE_SET HEADERS DESTINATION include
|
||||||
INCLUDES DESTINATION include
|
INCLUDES DESTINATION include
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
ARCHIVE DESTINATION lib/static
|
ARCHIVE DESTINATION lib
|
||||||
RUNTIME DESTINATION bin
|
RUNTIME DESTINATION bin
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ if(QTK_GUI)
|
||||||
COMPONENT qtk_gui
|
COMPONENT qtk_gui
|
||||||
BUNDLE DESTINATION .
|
BUNDLE DESTINATION .
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
ARCHIVE DESTINATION lib/static
|
ARCHIVE DESTINATION lib
|
||||||
RUNTIME DESTINATION bin
|
RUNTIME DESTINATION bin
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue