[cmake] unify windows resource file generation

* use a macro to add resource files for executables and shared libraries
* use that macro to declare targets
* use that macro to set library/binary versioning
* use that macro to set target output name
* use a macro to create manpages and names
This commit is contained in:
akallabeth
2024-03-19 12:19:07 +01:00
committed by akallabeth
parent ea9e219867
commit 678ff144ab
38 changed files with 215 additions and 670 deletions

View File

@@ -25,10 +25,7 @@ include_directories(${X11_INCLUDE_DIR})
set(SRCS
rdtk_x11.c)
add_executable(${MODULE_NAME} ${SRCS})
if (WITH_BINARY_VERSIONING)
set_target_properties(${MODULE_NAME} PROPERTIES OUTPUT_NAME "${MODULE_NAME}${RDTK_API_VERSION}")
endif()
AddTargetWithResourceFile(${MODULE_NAME} TRUE "${RDTK_VERSION}" SRCS)
set(LIBS rdtk)