mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
29 lines
772 B
CMake
29 lines
772 B
CMake
# (c) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
|
|
|
project(QZint)
|
|
|
|
include_directories(BEFORE "${CMAKE_SOURCE_DIR}/backend" )
|
|
|
|
set(QZint_SRCS qzint.cpp)
|
|
|
|
QT4_WRAP_CPP(QZint_SRCS qzint.h)
|
|
|
|
#add_definitions (-DNO_QT_KEYWORDS)
|
|
# Uncomment the above line if you want to compile qzint without qt keywords
|
|
|
|
|
|
add_library(QZint SHARED ${QZint_SRCS})
|
|
|
|
set_target_properties(QZint PROPERTIES VERSION ${ZINT_VERSION}
|
|
SOVERSION ${ZINT_VERSION})
|
|
|
|
add_dependencies(QZint zint)
|
|
|
|
link_directories( "${CMAKE_BINARY_DIR}/backend" )
|
|
|
|
target_link_libraries(QZint zint ${QT_QTGUI_LIBRARY}
|
|
${QT_QTCORE_LIBRARY} )
|
|
|
|
install(TARGETS QZint ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
install(FILES qzint.h DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
|