mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-11 20:16:47 +00:00
chore(@desktop/general): CMake include files optimization
This commit is contained in:
parent
caafbf9430
commit
78319b9e58
@ -6,46 +6,15 @@ include(GNUInstallDirs)
|
|||||||
macro(add_target name type)
|
macro(add_target name type)
|
||||||
find_package(Qt5 COMPONENTS Core Qml Gui Quick QuickControls2 Widgets Network REQUIRED)
|
find_package(Qt5 COMPONENTS Core Qml Gui Quick QuickControls2 Widgets Network REQUIRED)
|
||||||
|
|
||||||
add_library(${name} ${type}
|
file(GLOB_RECURSE HEADERS include/DOtherSide/*.h)
|
||||||
include/DOtherSide/DOtherSideTypes.h
|
if(APPLE)
|
||||||
include/DOtherSide/DOtherSideTypesCpp.h
|
file(GLOB_RECURSE SOURCES src/*.cpp src/*.mm)
|
||||||
include/DOtherSide/DOtherSide.h
|
|
||||||
include/DOtherSide/DosQDeclarative.h
|
|
||||||
include/DOtherSide/DosQObjectWrapper.h
|
|
||||||
include/DOtherSide/DosQAbstractItemModelWrapper.h
|
|
||||||
include/DOtherSide/DosQObject.h
|
|
||||||
include/DOtherSide/DosQObjectImpl.h
|
|
||||||
include/DOtherSide/DosIQObjectImpl.h
|
|
||||||
include/DOtherSide/DosQMetaObject.h
|
|
||||||
include/DOtherSide/DosIQAbstractItemModelImpl.h
|
|
||||||
include/DOtherSide/DosQAbstractItemModel.h
|
|
||||||
include/DOtherSide/Utils.h
|
|
||||||
include/DOtherSide/StatusEvents/StatusDockShowAppEvent.h
|
|
||||||
include/DOtherSide/StatusEvents/StatusOSThemeEvent.h
|
|
||||||
include/DOtherSide/DOtherSideStatusWindow.h
|
|
||||||
include/DOtherSide/DOtherSideSingleInstance.h
|
|
||||||
include/DOtherSide/DOtherSideStatusSyntaxHighlighter.h
|
|
||||||
src/DOtherSide.cpp
|
|
||||||
src/DosQMetaObject.cpp
|
|
||||||
src/DosQDeclarative.cpp
|
|
||||||
src/DosQObject.cpp
|
|
||||||
src/DOtherSideTypesCpp.cpp
|
|
||||||
src/DosQObjectImpl.cpp
|
|
||||||
src/DosQAbstractItemModel.cpp
|
|
||||||
src/DosQQuickImageProvider.cpp
|
|
||||||
src/StatusEvents/StatusDockShowAppEvent.cpp
|
|
||||||
src/StatusEvents/StatusOSThemeEvent.cpp
|
|
||||||
src/DOtherSideStatusWindow.cpp
|
|
||||||
src/DOtherSideSingleInstance.cpp
|
|
||||||
src/DOtherSideStatusSyntaxHighlighter.cpp
|
|
||||||
)
|
|
||||||
|
|
||||||
if (APPLE)
|
|
||||||
target_sources(${name} PUBLIC src/DOtherSideStatusWindow_osx.mm)
|
|
||||||
else()
|
else()
|
||||||
target_sources(${name} PUBLIC ${CMAKE_SOURCE_DIR}/lib/src/DOtherSideStatusWindow_other.cpp)
|
file(GLOB_RECURSE SOURCES src/*.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_library(${name} ${type} ${SOURCES} ${HEADERS})
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
target_compile_definitions(${name} PRIVATE -DWIN32)
|
target_compile_definitions(${name} PRIVATE -DWIN32)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user