91e6b23d3f
NMAKE-VS2012 Error LNK2011 while NMAKE-VS2010 does not complain we need to link the pch.obj file see http://msdn.microsoft.com/en-us/library/3ay26wa2(v=vs.110).aspx ** PCH Support for Ninja Ninja need to add property OBJECT_DEPENDS for using PCH OBJECT_OUTPUTS for create PCH see http://public.kitware.com/pipermail/cmake-developers/2012-March/003653.html
29 lines
1.1 KiB
CMake
29 lines
1.1 KiB
CMake
FILE(GLOB SRC *.cpp *.h)
|
|
|
|
ADD_LIBRARY(object_viewer_dll SHARED ${SRC} object_viewer.rc)
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
|
|
|
TARGET_LINK_LIBRARIES(object_viewer_dll
|
|
nelmisc
|
|
nel3d
|
|
nelsound
|
|
nelsnd_lowlevel
|
|
Version.lib)
|
|
|
|
NL_DEFAULT_PROPS(object_viewer_dll "NeL, Tools, 3D: Object Viewer DLL")
|
|
NL_ADD_RUNTIME_FLAGS(object_viewer_dll)
|
|
NL_ADD_LIB_SUFFIX(object_viewer_dll)
|
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} ${MFC_DEFINITIONS} -DOBJECT_VIEWER_LIB_EXPORTS)
|
|
|
|
IF(WITH_PCH)
|
|
ADD_NATIVE_PRECOMPILED_HEADER(object_viewer_dll ${CMAKE_CURRENT_SOURCE_DIR}/std_afx.h ${CMAKE_CURRENT_SOURCE_DIR}/std_afx.cpp)
|
|
ENDIF(WITH_PCH)
|
|
|
|
INSTALL(TARGETS object_viewer_dll LIBRARY DESTINATION ${NL_LIB_PREFIX} RUNTIME DESTINATION ${NL_BIN_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT tools3d)
|
|
INSTALL(FILES object_viewer.cfg DESTINATION ${NL_ETC_PREFIX} 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)
|