We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbe496b commit b4ba75cCopy full SHA for b4ba75c
1 file changed
CMakeLists.txt
@@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.12.0)
2
3
project(SingleApplication VERSION 3.6.0 LANGUAGES CXX DESCRIPTION "Replacement for QtSingleApplication")
4
5
+option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
6
set(CMAKE_AUTOMOC ON)
7
-add_library(${PROJECT_NAME} STATIC
8
+add_library(${PROJECT_NAME}
9
singleapplication.cpp
10
singleapplication_p.cpp
11
)
@@ -98,6 +99,8 @@ if(DOXYGEN_FOUND)
98
99
endif()
100
101
if(SINGLEAPPLICATION_INSTALL)
102
+ include(GNUInstallDirs)
103
+
104
# Create a header veriant where QAPPLICATION_CLASS is replaced with FreeStandingSingleApplication
105
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/singleapplication.h" SINGLEAPPLICATION_H_CONTENT)
106
0 commit comments