1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-30 17:14:58 +01:00

39 lines
876 B
CMake
Raw Normal View History

2018-05-14 17:57:37 +02:00
cmake_minimum_required(VERSION 2.8.11)
2019-04-05 23:09:00 +02:00
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
2018-05-14 17:57:37 +02:00
set(CMAKE_CXX_STANDARD 11)
2019-04-05 23:09:00 +02:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -U__STRICT_ANSI__")
2018-05-14 17:57:37 +02:00
2018-02-27 18:06:05 +01:00
set(SOURCES)
set(HEADERS
qsearchfield.h
qbutton.h
qprogressindicatorspinning.h
)
qt5_wrap_cpp(MOC_SOURCES ${HEADERS})
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
2018-07-01 22:26:46 +02:00
qsearchfield_nonmac.qrc
2018-02-27 18:06:05 +01:00
qprogressindicatorspinning_nonmac.qrc
)
qt5_add_resources(RESOURCES_SOURCES ${RESOURCES})
endif()
2018-05-14 17:57:37 +02:00
add_library(Qocoa STATIC ${SOURCES} ${MOC_SOURCES} ${RESOURCES_SOURCES})
2018-02-27 18:06:05 +01:00
target_link_libraries(Qocoa ${QT_LIBRARIES})
2018-07-01 22:26:46 +02:00