mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-03 00:19:51 -04:00
cmake buildsystem
This commit is contained in:
parent
b6c5e74476
commit
f4d73b209a
8 changed files with 133 additions and 4 deletions
28
backend_qt4/CMakeLists.txt
Normal file
28
backend_qt4/CMakeLists.txt
Normal file
|
@ -0,0 +1,28 @@
|
|||
# (c) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
||||
|
||||
project(QZint)
|
||||
|
||||
include_directories(BEFORE ../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( "../backend" )
|
||||
|
||||
target_link_libraries(QZint zint ${QT_QTGUI_LIBRARY}
|
||||
${QT_QTCORE_LIBRARY} )
|
||||
|
||||
install(TARGETS QZint LIBRARY DESTINATION lib)
|
||||
install(FILES qzint.h DESTINATION include COMPONENT Devel)
|
Loading…
Add table
Add a link
Reference in a new issue