2010-08-20 11:27:17 +00:00
|
|
|
FILE(GLOB SRC *.cpp *.h)
|
|
|
|
|
|
|
|
LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/std_afx2.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/std_afx2.cpp)
|
|
|
|
ENABLE_LANGUAGE(RC)
|
|
|
|
|
|
|
|
ADD_DEFINITIONS(-D_AFXDLL)
|
|
|
|
SET(CMAKE_MFC_FLAG 2)
|
|
|
|
|
|
|
|
ADD_LIBRARY(object_viewer_dll SHARED ${SRC} object_viewer.rc)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
2010-09-01 19:03:30 +00:00
|
|
|
|
2010-08-20 11:27:17 +00:00
|
|
|
TARGET_LINK_LIBRARIES(object_viewer_dll
|
|
|
|
nelmisc
|
|
|
|
nel3d
|
|
|
|
nelsound
|
|
|
|
nelsnd_lowlevel
|
|
|
|
Version.lib)
|
|
|
|
|
2010-09-03 14:02:04 +00:00
|
|
|
NL_DEFAULT_PROPS(object_viewer_dll "NeL, Tools, 3D: Object Viewer DLL")
|
2010-09-01 19:03:30 +00:00
|
|
|
NL_ADD_RUNTIME_FLAGS(object_viewer_dll)
|
|
|
|
NL_ADD_LIB_SUFFIX(object_viewer_dll)
|
2010-08-20 11:27:17 +00:00
|
|
|
|
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} -DOBJECT_VIEWER_LIB_EXPORTS)
|
|
|
|
|
|
|
|
INSTALL(TARGETS object_viewer_dll LIBRARY DESTINATION lib RUNTIME DESTINATION bin ARCHIVE DESTINATION lib COMPONENT tools3d)
|
|
|
|
INSTALL(FILES object_viewer.cfg DESTINATION bin COMPONENT tools3d)
|
|
|
|
IF(WITH_MAXPLUGIN)
|
|
|
|
INSTALL(TARGETS object_viewer_dll RUNTIME DESTINATION maxplugin COMPONENT tools3d)
|
|
|
|
INSTALL(FILES object_viewer.cfg DESTINATION maxplugin COMPONENT tools3d)
|
|
|
|
ENDIF(WITH_MAXPLUGIN)
|