mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user