mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chore(build): fix formatting
This commit is contained in:
parent
cf06cc7a1d
commit
b4e9fc7b83
|
@ -521,10 +521,10 @@ if(${ENABLE_GTK_SYSTRAY})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# the compiler flags for compiling C sources
|
# the compiler flags for compiling C sources
|
||||||
MESSAGE( STATUS "CMAKE_C_FLAGS: " ${CMAKE_C_FLAGS} )
|
MESSAGE( STATUS "CMAKE_C_FLAGS: " ${CMAKE_C_FLAGS} )
|
||||||
|
|
||||||
# the compiler flags for compiling C++ sources
|
# the compiler flags for compiling C++ sources
|
||||||
MESSAGE( STATUS "CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS} )
|
MESSAGE( STATUS "CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS} )
|
||||||
|
|
||||||
add_library(${PROJECT_NAME}_static
|
add_library(${PROJECT_NAME}_static
|
||||||
|
|
|
@ -48,10 +48,10 @@ function(search_dependency pkg)
|
||||||
|
|
||||||
# Then, try OSX frameworks.
|
# Then, try OSX frameworks.
|
||||||
if(NOT ${pkg}_FOUND AND arg_FRAMEWORK)
|
if(NOT ${pkg}_FOUND AND arg_FRAMEWORK)
|
||||||
find_library(${pkg}_LIBRARIES
|
find_library(${pkg}_LIBRARIES
|
||||||
NAMES ${arg_FRAMEWORK}
|
NAMES ${arg_FRAMEWORK}
|
||||||
PATHS ${CMAKE_OSX_SYSROOT}/System/Library
|
PATHS ${CMAKE_OSX_SYSROOT}/System/Library
|
||||||
PATH_SUFFIXES Frameworks
|
PATH_SUFFIXES Frameworks
|
||||||
NO_DEFAULT_PATH
|
NO_DEFAULT_PATH
|
||||||
)
|
)
|
||||||
if(${pkg}_LIBRARIES)
|
if(${pkg}_LIBRARIES)
|
||||||
|
@ -74,16 +74,18 @@ function(search_dependency pkg)
|
||||||
message(STATUS "${pkg} not found")
|
message(STATUS "${pkg} not found")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(STATUS ${pkg} " LIBRARY_DIRS: " ${${pkg}_LIBRARY_DIRS} )
|
message(STATUS ${pkg} " LIBRARY_DIRS: " ${${pkg}_LIBRARY_DIRS} )
|
||||||
message(STATUS ${pkg} " INCLUDE_DIRS: " ${${pkg}_INCLUDE_DIRS} )
|
message(STATUS ${pkg} " INCLUDE_DIRS: " ${${pkg}_INCLUDE_DIRS} )
|
||||||
message(STATUS ${pkg} " CFLAGS_OTHER: " ${${pkg}_CFLAGS_OTHER} )
|
message(STATUS ${pkg} " CFLAGS_OTHER: " ${${pkg}_CFLAGS_OTHER} )
|
||||||
message(STATUS ${pkg} " LIBRARIES: " ${${pkg}_LIBRARIES} )
|
message(STATUS ${pkg} " LIBRARIES: " ${${pkg}_LIBRARIES} )
|
||||||
|
|
||||||
link_directories(${${pkg}_LIBRARY_DIRS})
|
link_directories(${${pkg}_LIBRARY_DIRS})
|
||||||
include_directories(${${pkg}_INCLUDE_DIRS})
|
include_directories(${${pkg}_INCLUDE_DIRS})
|
||||||
|
|
||||||
foreach(flag ${${pkg}_CFLAGS_OTHER})
|
foreach(flag ${${pkg}_CFLAGS_OTHER})
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}" PARENT_SCOPE)
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}" PARENT_SCOPE)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
set(ALL_LIBRARIES ${ALL_LIBRARIES} ${${pkg}_LIBRARIES} PARENT_SCOPE)
|
set(ALL_LIBRARIES ${ALL_LIBRARIES} ${${pkg}_LIBRARIES} PARENT_SCOPE)
|
||||||
message(STATUS "${pkg} found")
|
message(STATUS "${pkg} found")
|
||||||
endif()
|
endif()
|
||||||
|
@ -98,11 +100,6 @@ search_dependency(LIBAVUTIL PACKAGE libavutil)
|
||||||
search_dependency(LIBQRENCODE PACKAGE libqrencode)
|
search_dependency(LIBQRENCODE PACKAGE libqrencode)
|
||||||
search_dependency(LIBSODIUM PACKAGE libsodium)
|
search_dependency(LIBSODIUM PACKAGE libsodium)
|
||||||
search_dependency(LIBSWSCALE PACKAGE libswscale)
|
search_dependency(LIBSWSCALE PACKAGE libswscale)
|
||||||
|
|
||||||
if(WIN32)
|
|
||||||
search_dependency(OPENSSL PACKAGE openssl)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
search_dependency(SQLCIPHER PACKAGE sqlcipher)
|
search_dependency(SQLCIPHER PACKAGE sqlcipher)
|
||||||
search_dependency(VPX PACKAGE vpx)
|
search_dependency(VPX PACKAGE vpx)
|
||||||
|
|
||||||
|
@ -138,6 +135,8 @@ endif()
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(ALL_LIBRARIES ${ALL_LIBRARIES} strmiids)
|
set(ALL_LIBRARIES ${ALL_LIBRARIES} strmiids)
|
||||||
|
# Qt doesn't provide openssl on windows
|
||||||
|
search_dependency(OPENSSL PACKAGE openssl)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT GIT_DESCRIBE)
|
if (NOT GIT_DESCRIBE)
|
||||||
|
|
|
@ -10,8 +10,8 @@ SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
|
||||||
SET(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} /usr/x86_64-w64-mingw32)
|
SET(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} /usr/x86_64-w64-mingw32)
|
||||||
|
|
||||||
# adjust the default behaviour of the FIND_XXX() commands:
|
# adjust the default behaviour of the FIND_XXX() commands:
|
||||||
# search headers and libraries in the target environment, search
|
# search headers and libraries in the target environment, search
|
||||||
# programs in the host environment
|
# programs in the host environment
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user