Added: NL_ADD_RUNTIME_FLAGS for libraries
This commit is contained in:
parent
4a37bc4d74
commit
13de385469
14 changed files with 19 additions and 19 deletions
|
@ -669,6 +669,7 @@ INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${FREETYPE_INCLUDE_DIRS})
|
|||
TARGET_LINK_LIBRARIES(nel3d nelmisc ${FREETYPE_LIBRARY})
|
||||
SET_TARGET_PROPERTIES(nel3d PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
||||
NL_DEFAULT_PROPS(nel3d "NeL, Library: NeL 3D")
|
||||
NL_ADD_RUNTIME_FLAGS(nel3d)
|
||||
NL_ADD_STATIC_VID_DRIVERS(nel3d)
|
||||
|
||||
NL_ADD_LIB_SUFFIX(nel3d)
|
||||
|
|
|
@ -4,7 +4,7 @@ NL_TARGET_DRIVER(nel_drv_direct3d_win ${SRC})
|
|||
|
||||
INCLUDE_DIRECTORIES(${DXSDK_INCLUDE_DIR})
|
||||
|
||||
TARGET_LINK_LIBRARIES(nel_drv_direct3d_win nel3d ${DXSDK_D3DX9_LIBRARY} ${DXSDK_D3D9_LIBRARY} ${DXSDK_DINPUT_LIBRARY} ${DXSDK_GUID_LIBRARY})
|
||||
TARGET_LINK_LIBRARIES(nel_drv_direct3d_win nel3d nelmisc ${DXSDK_D3DX9_LIBRARY} ${DXSDK_D3D9_LIBRARY} ${DXSDK_DINPUT_LIBRARY} ${DXSDK_GUID_LIBRARY})
|
||||
|
||||
NL_DEFAULT_PROPS(nel_drv_direct3d_win "NeL, Driver, Video: Direct3D")
|
||||
NL_ADD_RUNTIME_FLAGS(nel_drv_direct3d_win)
|
||||
|
|
|
@ -4,20 +4,10 @@ ADD_LIBRARY(nelceguirenderer SHARED ${SRC} nelceguirenderer.def)
|
|||
|
||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${FREETYPE_INC} ${CEGUI_INCLUDE_DIRS})
|
||||
TARGET_LINK_LIBRARIES(nelceguirenderer nelmisc nel3d ${CEGUI_LIBRARY})
|
||||
SET_TARGET_PROPERTIES(nelceguirenderer PROPERTIES
|
||||
VERSION ${NL_VERSION}
|
||||
SOVERSION ${NL_VERSION_MAJOR}
|
||||
PROJECT_LABEL "NeL, Library: CEGUI Renderer")
|
||||
NL_DEFAULT_PROPS(nelceguirenderer "NeL, Library: CEGUI Renderer")
|
||||
NL_ADD_RUNTIME_FLAGS(nelceguirenderer)
|
||||
NL_ADD_LIB_SUFFIX(nelceguirenderer)
|
||||
|
||||
IF(WIN32)
|
||||
SET_TARGET_PROPERTIES(nelceguirenderer PROPERTIES
|
||||
DEBUG_POSTFIX "_d"
|
||||
RELEASE_POSTFIX "_r"
|
||||
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
|
||||
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}")
|
||||
ADD_DEFINITIONS("/DNEL_CEGUIRENDERER_EXPORTS")
|
||||
ENDIF(WIN32)
|
||||
|
||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} -DNEL_CEGUIRENDERER_EXPORTS)
|
||||
|
||||
INSTALL(TARGETS nelceguirenderer RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|
||||
|
|
|
@ -11,6 +11,7 @@ INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
|||
TARGET_LINK_LIBRARIES(nelgeorges ${LIBXML2_LIBRARIES} nelmisc)
|
||||
SET_TARGET_PROPERTIES(nelgeorges PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
||||
NL_DEFAULT_PROPS(nelgeorges "NeL, Library: NeL Georges")
|
||||
NL_ADD_RUNTIME_FLAGS(nelgeorges)
|
||||
|
||||
NL_ADD_LIB_SUFFIX(nelgeorges)
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
|||
TARGET_LINK_LIBRARIES(nelligo ${LIBXML2_LIBRARIES} nelmisc)
|
||||
SET_TARGET_PROPERTIES(nelligo PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
||||
NL_DEFAULT_PROPS(nelligo "NeL, Library: NeL Ligo")
|
||||
NL_ADD_RUNTIME_FLAGS(nelligo)
|
||||
|
||||
NL_ADD_LIB_SUFFIX(nelligo)
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
|||
TARGET_LINK_LIBRARIES(nellogic ${LIBXML2_LIBRARIES} nelmisc nelnet)
|
||||
SET_TARGET_PROPERTIES(nellogic PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
||||
NL_DEFAULT_PROPS(nellogic "NeL, Library: NeL Logic")
|
||||
NL_ADD_RUNTIME_FLAGS(nellogic)
|
||||
|
||||
NL_ADD_LIB_SUFFIX(nellogic)
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ ENDIF(WITH_GTK)
|
|||
TARGET_LINK_LIBRARIES(nelnet nelmisc)
|
||||
SET_TARGET_PROPERTIES(nelnet PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
||||
NL_DEFAULT_PROPS(nelnet "NeL, Library: NeL Net")
|
||||
NL_ADD_RUNTIME_FLAGS(nelnet)
|
||||
|
||||
NL_ADD_LIB_SUFFIX(nelnet)
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
|||
TARGET_LINK_LIBRARIES(nelpacs nelmisc)
|
||||
SET_TARGET_PROPERTIES(nelpacs PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
||||
NL_DEFAULT_PROPS(nelpacs "NeL, Library: NeL PACS")
|
||||
NL_ADD_RUNTIME_FLAGS(nelpacs)
|
||||
|
||||
NL_ADD_LIB_SUFFIX(nelpacs)
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
|||
TARGET_LINK_LIBRARIES(nelsound ${LIBXML2_LIBRARIES} nelmisc nelligo nelgeorges nel3d nelsnd_lowlevel)
|
||||
SET_TARGET_PROPERTIES(nelsound PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
||||
NL_DEFAULT_PROPS(nelsound "NeL, Library: NeL Sound")
|
||||
NL_ADD_RUNTIME_FLAGS(nelsound)
|
||||
|
||||
NL_ADD_LIB_SUFFIX(nelsound)
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ INCLUDE_DIRECTORIES(${OGG_INCLUDE_DIR} ${VORBIS_INCLUDE_DIR})
|
|||
TARGET_LINK_LIBRARIES(nelsnd_lowlevel nelmisc ${VORBIS_LIBRARY} ${VORBISFILE_LIBRARY})
|
||||
SET_TARGET_PROPERTIES(nelsnd_lowlevel PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
||||
NL_DEFAULT_PROPS(nelsnd_lowlevel "NeL, Library: Sound Lowlevel")
|
||||
NL_ADD_RUNTIME_FLAGS(nelsnd_lowlevel)
|
||||
NL_ADD_STATIC_VID_DRIVERS(nelsnd_lowlevel)
|
||||
|
||||
NL_ADD_LIB_SUFFIX(nelsnd_lowlevel)
|
||||
|
|
|
@ -6,8 +6,8 @@ INCLUDE_DIRECTORIES(${DXSDK_INCLUDE_DIR})
|
|||
TARGET_LINK_LIBRARIES(nel_drv_dsound nelmisc nelsnd_lowlevel ${DXSDK_DSOUND_LIBRARY} ${DXSDK_GUID_LIBRARY})
|
||||
|
||||
NL_DEFAULT_PROPS(nel_drv_dsound "NeL, Driver, Sound: DirectSound")
|
||||
NL_ADD_LIB_SUFFIX(nel_drv_dsound)
|
||||
NL_ADD_RUNTIME_FLAGS(nel_drv_dsound)
|
||||
NL_ADD_LIB_SUFFIX(nel_drv_dsound)
|
||||
|
||||
IF(WITH_PCH)
|
||||
ADD_NATIVE_PRECOMPILED_HEADER(nel_drv_dsound ${CMAKE_CURRENT_SOURCE_DIR}/stddsound.h ${CMAKE_CURRENT_SOURCE_DIR}/stddsound.cpp)
|
||||
|
|
|
@ -6,8 +6,8 @@ INCLUDE_DIRECTORIES(${FMOD_INCLUDE_DIR})
|
|||
TARGET_LINK_LIBRARIES(nel_drv_fmod ${FMOD_LIBRARY} nelmisc nelsnd_lowlevel)
|
||||
|
||||
NL_DEFAULT_PROPS(nel_drv_fmod "NeL, Driver, Sound: FMOD")
|
||||
NL_ADD_LIB_SUFFIX(nel_drv_fmod)
|
||||
NL_ADD_RUNTIME_FLAGS(nel_drv_fmod)
|
||||
NL_ADD_LIB_SUFFIX(nel_drv_fmod)
|
||||
|
||||
IF(WITH_PCH)
|
||||
ADD_NATIVE_PRECOMPILED_HEADER(nel_drv_fmod ${CMAKE_CURRENT_SOURCE_DIR}/stdfmod.h ${CMAKE_CURRENT_SOURCE_DIR}/stdfmod.cpp)
|
||||
|
|
|
@ -21,10 +21,11 @@ SOURCE_GROUP(util FILES
|
|||
NL_TARGET_DRIVER(nel_drv_openal ${SRC})
|
||||
|
||||
INCLUDE_DIRECTORIES(${OPENAL_INCLUDE_DIR})
|
||||
|
||||
TARGET_LINK_LIBRARIES(nel_drv_openal ${OPENAL_LIBRARY} nelmisc nelsnd_lowlevel)
|
||||
NL_DEFAULT_PROPS(nel_drv_openal "NeL, Driver, Sound: OpenAL")
|
||||
NL_ADD_LIB_SUFFIX(nel_drv_openal)
|
||||
NL_ADD_RUNTIME_FLAGS(nel_drv_openal)
|
||||
NL_ADD_LIB_SUFFIX(nel_drv_openal)
|
||||
|
||||
IF(WIN32)
|
||||
# Find and include EFX-Util on Windows.
|
||||
|
|
|
@ -29,11 +29,12 @@ SOURCE_GROUP(efx FILES
|
|||
NL_TARGET_DRIVER(nel_drv_xaudio2 ${SRC})
|
||||
|
||||
INCLUDE_DIRECTORIES(${DXSDK_INCLUDE_DIR})
|
||||
|
||||
TARGET_LINK_LIBRARIES(nel_drv_xaudio2 nelmisc nelsnd_lowlevel ${DXSDK_XAUDIO_LIBRARY} ${DXSDK_GUID_LIBRARY})
|
||||
|
||||
NL_DEFAULT_PROPS(nel_drv_xaudio2 "NeL, Driver, Sound: XAudio2")
|
||||
NL_ADD_LIB_SUFFIX(nel_drv_xaudio2)
|
||||
NL_ADD_RUNTIME_FLAGS(nel_drv_xaudio2)
|
||||
NL_ADD_LIB_SUFFIX(nel_drv_xaudio2)
|
||||
|
||||
IF(WITH_PCH)
|
||||
ADD_NATIVE_PRECOMPILED_HEADER(nel_drv_xaudio2 ${CMAKE_CURRENT_SOURCE_DIR}/stdxaudio2.h ${CMAKE_CURRENT_SOURCE_DIR}/stdxaudio2.cpp)
|
||||
|
|
Loading…
Reference in a new issue