2012-06-27 17:08:51 +02:00
|
|
|
set(SOURCES)
|
|
|
|
|
|
|
|
set(HEADERS
|
|
|
|
qsearchfield.h
|
|
|
|
qbutton.h
|
|
|
|
qprogressindicatorspinning.h
|
|
|
|
)
|
|
|
|
|
2015-04-11 22:48:34 +02:00
|
|
|
qt5_wrap_cpp(MOC_SOURCES ${HEADERS})
|
2012-06-27 17:08:51 +02:00
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
list(APPEND SOURCES
|
|
|
|
qsearchfield_mac.mm
|
|
|
|
qbutton_mac.mm
|
|
|
|
qprogressindicatorspinning_mac.mm
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
list(APPEND SOURCES
|
|
|
|
qsearchfield_nonmac.cpp
|
|
|
|
qbutton_nonmac.cpp
|
|
|
|
qprogressindicatorspinning_nonmac.cpp
|
|
|
|
)
|
|
|
|
set(RESOURCES
|
|
|
|
qprogressindicatorspinning_nonmac.qrc
|
|
|
|
)
|
2015-04-11 22:48:34 +02:00
|
|
|
qt5_add_resources(RESOURCES_SOURCES ${RESOURCES})
|
2012-06-27 17:08:51 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(Qocoa STATIC
|
|
|
|
${SOURCES} ${MOC_SOURCES} ${RESOURCES_SOURCES}
|
|
|
|
)
|
2019-01-02 16:02:34 +01:00
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
target_link_libraries(Qocoa Qt5::Widgets Qt5::MacExtras)
|
|
|
|
else()
|
|
|
|
target_link_libraries(Qocoa Qt5::Widgets)
|
|
|
|
endif()
|