2012-01-02 18:21:07 +01:00
|
|
|
include_directories(${PROTOBUF_INCLUDE_DIRS})
|
2012-01-06 00:22:51 +01:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
2012-01-02 18:21:07 +01:00
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
2012-01-06 00:22:51 +01:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/ext/libclementine-common)
|
2013-02-23 01:02:36 +01:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/ext/libclementine-tagreader)
|
2012-01-06 00:22:51 +01:00
|
|
|
include_directories(${CMAKE_BINARY_DIR}/ext/libclementine-tagreader)
|
2012-01-02 18:21:07 +01:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/src)
|
2012-07-28 20:35:12 +02:00
|
|
|
include_directories(${CMAKE_BINARY_DIR}/src)
|
2012-01-02 18:21:07 +01:00
|
|
|
|
2012-11-28 14:43:03 +01:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++0x -U__STRICT_ANSI__")
|
|
|
|
|
2012-01-02 18:21:07 +01:00
|
|
|
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
main.cpp
|
|
|
|
tagreaderworker.cpp
|
|
|
|
)
|
|
|
|
|
2015-04-11 22:51:40 +02:00
|
|
|
qt5_wrap_cpp(MOC ${HEADERS})
|
|
|
|
qt5_add_resources(QRC data/data.qrc)
|
2012-01-02 18:21:07 +01:00
|
|
|
|
|
|
|
add_executable(clementine-tagreader
|
|
|
|
${SOURCES}
|
|
|
|
${MOC}
|
2012-11-28 14:43:03 +01:00
|
|
|
${QRC}
|
2012-01-02 18:21:07 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(clementine-tagreader
|
|
|
|
${TAGLIB_LIBRARIES}
|
2012-01-06 00:22:51 +01:00
|
|
|
libclementine-common
|
|
|
|
libclementine-tagreader
|
2018-12-05 18:16:34 +01:00
|
|
|
Qt5::Core
|
|
|
|
Qt5::Network
|
2016-12-15 12:36:05 +01:00
|
|
|
z
|
2012-01-02 18:21:07 +01:00
|
|
|
)
|
|
|
|
|
2012-10-31 13:26:10 +01:00
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
|
|
target_link_libraries(clementine-tagreader
|
|
|
|
execinfo
|
|
|
|
)
|
|
|
|
endif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
|
|
|
2012-01-02 18:21:07 +01:00
|
|
|
if(APPLE)
|
|
|
|
target_link_libraries(clementine-tagreader
|
2016-12-15 12:36:05 +01:00
|
|
|
"-framework Foundation"
|
2012-01-02 18:21:07 +01:00
|
|
|
)
|
|
|
|
endif(APPLE)
|
|
|
|
|
|
|
|
if(NOT APPLE)
|
|
|
|
# macdeploy.py takes care of this on mac
|
|
|
|
install(TARGETS clementine-tagreader
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
|
|
|
endif(NOT APPLE)
|