mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-04 08:49:45 -04:00
CMake: use "GNUInstallDirs" instead of old (2008) KDE
"SetPaths.cmake" (removed) - resolves absolute paths in "zint-targets.cmake", ticket #318, props John Alexander; also remove "FindZint.cmake" install as not best practice (Daniel Pfeifer “Effective CMake"), but retain in tree for now; also remove APPLE stuff re UNIVERSAL build, obsolete, and setting of CMAKE_OSX_SYSROOT, seems unnecessary
This commit is contained in:
parent
04e8cacb81
commit
d97fc7e110
6 changed files with 23 additions and 324 deletions
|
@ -4,9 +4,7 @@
|
|||
|
||||
project(zint_frontend)
|
||||
|
||||
set(${PROJECT_NAME}_SRCS main.c)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${zint_frontend_SRCS})
|
||||
add_executable(${PROJECT_NAME} main.c)
|
||||
|
||||
if(WIN32)
|
||||
target_sources(${PROJECT_NAME} PRIVATE zint.rc)
|
||||
|
@ -25,9 +23,9 @@ if(NOT HAVE_GETOPT_LONG_ONLY)
|
|||
target_link_libraries(${PROJECT_NAME} zint_bundled_getopt)
|
||||
endif()
|
||||
|
||||
install(TARGETS ${PROJECT_NAME} DESTINATION "${BIN_INSTALL_DIR}" RUNTIME)
|
||||
install(TARGETS ${PROJECT_NAME} DESTINATION "${CMAKE_INSTALL_BINDIR}" RUNTIME)
|
||||
if(UNIX)
|
||||
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../docs/zint.1" DESTINATION "${MAN_INSTALL_DIR}/man1" COMPONENT doc)
|
||||
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../docs/zint.1" DESTINATION "${CMAKE_INSTALL_MANDIR}/man1" COMPONENT doc)
|
||||
endif()
|
||||
|
||||
if(ZINT_TEST)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue