Skip to content

Commit

Permalink
CMake files updated.
Browse files Browse the repository at this point in the history
Added Qt version to plugins variable.cmake
  • Loading branch information
Vitozz committed Mar 18, 2024
1 parent 8637ad7 commit 33c6541
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/cmake/modules/variables.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ get_filename_component(ABS_INCLUDES_DIR "${CMAKE_CURRENT_LIST_DIR}/../include" A

set(CMAKE_CXX_STANDARD 17)

if("${QT_DEFAULT_MAJOR_VERSION}" STREQUAL "")
set(QT_DEFAULT_MAJOR_VERSION 5)
endif()

if( NOT WIN32 )
set( LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
set( PLUGINS_PATH "lib${LIB_SUFFIX}/${MAIN_PROGRAM_NAME}/plugins" CACHE STRING "Install suffix for plugins" )
Expand Down
3 changes: 3 additions & 0 deletions plugins/variables.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ set( MAIN_PROGRAM_NAME "@SHARE_SUFF@" CACHE STRING "Name of main client" )
add_definitions( -DQT_PLUGIN )
include_directories("@plugins_includes_dir@")
set(CMAKE_CXX_STANDARD 17)
if("${QT_DEFAULT_MAJOR_VERSION}" STREQUAL "")
set(QT_DEFAULT_MAJOR_VERSION 5)
endif()

0 comments on commit 33c6541

Please sign in to comment.