fixed rpath

This commit is contained in:
Igor Korsukov 2020-12-08 17:55:08 +02:00
parent 7fa15407e3
commit 702494f7e1
2 changed files with 9 additions and 6 deletions

View file

@ -57,6 +57,7 @@ option(BUILD_UNIT_TESTS "Build gtest unit test" OFF)
option(PACKAGE_FILE_ASSOCIATION "File types association" OFF)
option(BUILD_PCH "Build using precompiled headers." OFF)
option(BUILD_SHARED_LIB_IN_DEBUG "Build shared libs if possible in debug" ON)
option(QML_LOAD_FROM_SOURCE "Load qml files from source (not resource)" OFF)
option(USE_SYSTEM_FREETYPE "Use system FreeType" OFF) # requires freetype >= 2.5.2, does not work on win

View file

@ -40,12 +40,14 @@ if (_build_type STREQUAL "debug")
endif()
set(LIBRARY_TYPE STATIC)
if (IS_DEBUG_BUILD)
include(GetPlatformInfo)
if (PLATFORM_IS_LINUX)
set(LIBRARY_TYPE SHARED)
endif(PLATFORM_IS_LINUX)
endif(IS_DEBUG_BUILD)
if (BUILD_SHARED_LIB_IN_DEBUG)
if (IS_DEBUG_BUILD)
include(GetPlatformInfo)
if (PLATFORM_IS_LINUX)
set(LIBRARY_TYPE SHARED)
endif(PLATFORM_IS_LINUX)
endif(IS_DEBUG_BUILD)
endif(BUILD_SHARED_LIB_IN_DEBUG)
if (MODULE_QRC)
qt5_add_resources(RCC_SOURCES ${MODULE_QRC})