|
|
|
@ -59,7 +59,7 @@ ENDMACRO()
|
|
|
|
|
|
|
|
|
|
MACRO(DFHACK_PLUGIN)
|
|
|
|
|
PARSE_ARGUMENTS(PLUGIN
|
|
|
|
|
"LINK_LIBRARIES;DEPENDS;PROTOBUFS"
|
|
|
|
|
"LINK_LIBRARIES;DEPENDS;PROTOBUFS;COMPILE_FLAGS;COMPILE_FLAGS_GCC;COMPILE_FLAGS_MSVC"
|
|
|
|
|
"SOME_OPT"
|
|
|
|
|
${ARGN}
|
|
|
|
|
)
|
|
|
|
@ -95,6 +95,13 @@ MACRO(DFHACK_PLUGIN)
|
|
|
|
|
TARGET_LINK_LIBRARIES(${PLUGIN_NAME} dfhack dfhack-version ${PLUGIN_LINK_LIBRARIES})
|
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
SET_TARGET_PROPERTIES(${PLUGIN_NAME} PROPERTIES COMPILE_FLAGS "${PLUGIN_COMPILE_FLAGS}")
|
|
|
|
|
IF(UNIX)
|
|
|
|
|
SET_TARGET_PROPERTIES(${PLUGIN_NAME} PROPERTIES COMPILE_FLAGS "${PLUGIN_COMPILE_FLAGS_GCC}")
|
|
|
|
|
ELSE()
|
|
|
|
|
SET_TARGET_PROPERTIES(${PLUGIN_NAME} PROPERTIES COMPILE_FLAGS "${PLUGIN_COMPILE_FLAGS_MSVC}")
|
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
IF(APPLE)
|
|
|
|
|
SET_TARGET_PROPERTIES(${PLUGIN_NAME} PROPERTIES SUFFIX .plug.dylib PREFIX "")
|
|
|
|
|
ELSEIF(UNIX)
|
|
|
|
|