2010-02-28 18:28:56 +01:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
set(SINGLEAPP-SOURCES
|
|
|
|
qtlocalpeer.cpp
|
|
|
|
qtlockedfile.cpp
|
|
|
|
qtsingleapplication.cpp
|
|
|
|
qtsinglecoreapplication.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(SINGLEAPP-MOC-HEADERS
|
|
|
|
qtlocalpeer.h
|
|
|
|
qtsingleapplication.h
|
|
|
|
qtsinglecoreapplication.h
|
|
|
|
)
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
set(SINGLEAPP-SOURCES ${SINGLEAPP-SOURCES} qtlockedfile_win.cpp)
|
|
|
|
elseif(WIN32)
|
|
|
|
set(SINGLEAPP-SOURCES ${SINGLEAPP-SOURCES} qtlockedfile_unix.cpp)
|
|
|
|
endif(WIN32)
|
|
|
|
|
|
|
|
QT4_WRAP_CPP(SINGLEAPP-SOURCES-MOC ${SINGLEAPP-MOC-HEADERS})
|
|
|
|
|
2010-06-22 18:07:29 +02:00
|
|
|
ADD_LIBRARY(qtsingleapplication STATIC
|
2010-02-28 18:28:56 +01:00
|
|
|
${SINGLEAPP-SOURCES}
|
|
|
|
${SINGLEAPP-SOURCES-MOC}
|
|
|
|
)
|