Apply CMake format
This commit is contained in:
parent
07e5752af8
commit
84011c2768
|
@ -163,7 +163,8 @@ else ()
|
|||
endif ()
|
||||
|
||||
# incorporate the SOVERSION into the library name for mingw-w64 targets
|
||||
if (BUILD_SHARED_LIBS AND NOT META_IS_PLUGIN
|
||||
if (BUILD_SHARED_LIBS
|
||||
AND NOT META_IS_PLUGIN
|
||||
AND MINGW
|
||||
AND VERSIONED_MINGW_LIBRARIES)
|
||||
set_target_properties(${META_TARGET_NAME} PROPERTIES SUFFIX "-${META_SOVERSION}.dll")
|
||||
|
|
|
@ -56,11 +56,17 @@ endif ()
|
|||
|
||||
# create Windows rc file from template
|
||||
configure_file("${RC_TEMPLATE_FILE}" "${WINDOWS_RC_FILE}-configured.rc")
|
||||
file(GENERATE OUTPUT "${WINDOWS_RC_FILE}-$<CONFIG>.rc" INPUT "${WINDOWS_RC_FILE}-configured.rc")
|
||||
file(
|
||||
GENERATE
|
||||
OUTPUT "${WINDOWS_RC_FILE}-$<CONFIG>.rc"
|
||||
INPUT "${WINDOWS_RC_FILE}-configured.rc")
|
||||
|
||||
# set windres as resource compiler
|
||||
list(APPEND RES_FILES "${WINDOWS_RC_FILE}-${CMAKE_BUILD_TYPE}.rc")
|
||||
set_property(SOURCE "${WINDOWS_RC_FILE}-${CMAKE_BUILD_TYPE}.rc" APPEND PROPERTY GENERATED ON)
|
||||
set_property(
|
||||
SOURCE "${WINDOWS_RC_FILE}-${CMAKE_BUILD_TYPE}.rc"
|
||||
APPEND
|
||||
PROPERTY GENERATED ON)
|
||||
set(CMAKE_RC_COMPILER_INIT windres)
|
||||
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
|
||||
enable_language(RC)
|
||||
|
|
Loading…
Reference in New Issue