Skip to content

Commit

Permalink
MacOSX: Compile to dylib
Browse files Browse the repository at this point in the history
  • Loading branch information
blizzard4591 committed Feb 20, 2020
1 parent d37a004 commit 3290b64
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,17 @@ if(CMAKE_COMPILER_IS_GNUCC)
endif()

if(QSQLCIPHER_STATIC)
set(LIBTYPE STATIC)
add_definitions(-DQT_STATICPLUGIN)
set(TEST_DIR test-static)
set(LIBTYPE STATIC)
add_definitions(-DQT_STATICPLUGIN)
set(TEST_DIR test-static)
else()
set(LIBTYPE MODULE)
if (APPLE)
set(LIBTYPE SHARED)
else()
set(LIBTYPE MODULE)
endif()
add_definitions(-DQT_PLUGIN)
set(TEST_DIR test-shared)
set(TEST_DIR test-shared)
endif()

if (Qt5Sql_FOUND)
Expand Down

0 comments on commit 3290b64

Please sign in to comment.