mirror of
https://github.com/novatiq/packages.git
synced 2026-07-29 15:03:05 +01:00
qrencode: switch to CMake
Allows simplifying the Makefile. Also faster compilation. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -131,7 +131,11 @@ if(WITH_TOOLS)
|
||||
add_executable(qrenc qrenc.c)
|
||||
set_target_properties(qrenc PROPERTIES OUTPUT_NAME qrencode)
|
||||
|
||||
- target_link_libraries(qrenc qrencode PNG::PNG)
|
||||
+ if(NOT WITHOUT_PNG)
|
||||
+ target_link_libraries(qrenc qrencode PNG::PNG)
|
||||
+ else()
|
||||
+ target_link_libraries(qrenc qrencode)
|
||||
+ endif()
|
||||
|
||||
if(MSVC)
|
||||
target_link_libraries(qrenc ${GETOPT_LIBRARIES})
|
||||
Reference in New Issue
Block a user