File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ endif()
4444
4545option (QSQLCIPHER_STATIC "Build plugin as a static library" OFF )
4646option (QSQLCIPHER_BUILD_TESTS "Build the test binary" ON )
47+ set (QSQLCIPHER_COPYTO_DIR "" CACHE PATH "If set, the build artifact of the library will be copied there" )
4748
4849set (CMAKE_CXX_STANDARD 14)
4950set (CMAKE_CXX_STANDARD_REQUIRED ON )
@@ -106,6 +107,10 @@ target_link_libraries(qsqlcipher
106107 ${SQLCIPHER_LIBRARIES} ${Libsqlcipher_LIBRARIES}
107108)
108109
110+ if (NOT ("${QSQLCIPHER_COPYTO_DIR} " STREQUAL "" ))
111+ add_custom_command (TARGET qsqlcipher POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:qsqlcipher> ${QSQLCIPHER_COPYTO_DIR} /$<TARGET_FILE_NAME:qsqlcipher>)
112+ endif ()
113+
109114#include(CTest)
110115if (QSQLCIPHER_BUILD_TESTS)
111116 add_subdirectory (${TEST_DIR} )
You can’t perform that action at this time.
0 commit comments