mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-31 09:32:03 +02:00
Compile kdsingleapplicationguard as separate lib
This commit is contained in:
24
thirdparty/kdsingleapplicationguard/CMakeLists.txt
vendored
Normal file
24
thirdparty/kdsingleapplicationguard/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
project(kdsingleapplicationguard)
|
||||
|
||||
list(APPEND kdsingleapplicationguard_INCLUDE_DIRECTORIES
|
||||
${QT_INCLUDES}
|
||||
${QT_QTCORE_INCLUDE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
||||
list(APPEND kdsingleapplicationguard_SOURCES
|
||||
kdsingleapplicationguard.cpp
|
||||
kdsharedmemorylocker.cpp
|
||||
kdtoolsglobal.cpp
|
||||
kdlockedsharedmemorypointer.cpp
|
||||
)
|
||||
|
||||
include_directories(${kdsingleapplicationguard_INCLUDE_DIRECTORIES})
|
||||
add_library(kdsingleapplicationguard STATIC ${kdsingleapplicationguard_SOURCES})
|
||||
set_target_properties(
|
||||
kdsingleapplicationguard
|
||||
PROPERTIES
|
||||
AUTOMOC TRUE
|
||||
)
|
||||
qt5_use_modules(kdsingleapplicationguard Core)
|
Reference in New Issue
Block a user