|
|
|
@ -16,14 +16,29 @@ IF(JPEG_FOUND)
|
|
|
|
|
TARGET_LINK_LIBRARIES(nelmisc ${JPEG_LIBRARY})
|
|
|
|
|
ENDIF(JPEG_FOUND)
|
|
|
|
|
|
|
|
|
|
IF(WITH_STATIC OR WIN32)
|
|
|
|
|
TARGET_LINK_LIBRARIES(nelmisc ${PNG_LIBRARIES})
|
|
|
|
|
ELSE(WITH_STATIC OR WIN32)
|
|
|
|
|
# Link only with libpng shared library
|
|
|
|
|
TARGET_LINK_LIBRARIES(nelmisc ${PNG_LIBRARY})
|
|
|
|
|
ENDIF(WITH_STATIC OR WIN32)
|
|
|
|
|
|
|
|
|
|
# For DirectInput (di_event_emitter)
|
|
|
|
|
IF(WIN32)
|
|
|
|
|
INCLUDE_DIRECTORIES(${DXSDK_INCLUDE_DIR})
|
|
|
|
|
TARGET_LINK_LIBRARIES(nelmisc ${DXSDK_DINPUT_LIBRARY} ${DXSDK_GUID_LIBRARY})
|
|
|
|
|
ENDIF(WIN32)
|
|
|
|
|
|
|
|
|
|
IF(UNIX)
|
|
|
|
|
SET(LIBC_LIBRARY -lc)
|
|
|
|
|
IF(NOT APPLE)
|
|
|
|
|
SET(LIBRT_LIBRARY -lrt)
|
|
|
|
|
ENDIF(NOT APPLE)
|
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${PNG_INCLUDE_DIR} config_file)
|
|
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(nelmisc ${LIBXML2_LIBRARIES} ${PNG_LIBRARIES} ${WINSOCK2_LIB})
|
|
|
|
|
TARGET_LINK_LIBRARIES(nelmisc ${CMAKE_THREAD_LIBS_INIT} ${LIBC_LIBRARY} ${LIBRT_LIBRARY} ${LIBXML2_LIBRARIES})
|
|
|
|
|
SET_TARGET_PROPERTIES(nelmisc PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
|
|
|
|
NL_DEFAULT_PROPS(nelmisc "NeL, Library: NeL Misc")
|
|
|
|
|
|
|
|
|
|