CMake Error at CMakeLists.txt:14 (INCLUDE_FOR_PROJECT): Unknown CMake command"INCLUDE_FOR_PROJECT"


cmake 报错:  尚未解决

# Copyright (C) 2009 by Wang Rui 
# OpenSceneGraph Engine Book - Design and Implementation
# How to create a compsite viewer

SET( EXAMPLE_NAME viewers )

SET( EXAMPLE_FILES
    viewers.cpp
)

SET( DATA_FILES
)

ADD_EXECUTABLE( ${EXAMPLE_NAME} ${EXAMPLE_FILES} )
SET_TARGET_PROPERTIES( ${EXAMPLE_NAME} PROPERTIES DEBUG_POSTFIX "${CMAKE_DEBUG_POSTFIX}" )

INCLUDE_FOR_PROJECT( ${EXAMPLE_NAME} OPENTHREADS OSG OSGDB OSGUTIL OSGVIEWER )
LINK_PROJECT( ${EXAMPLE_NAME} OPENTHREADS OSG OSGDB OSGUTIL OSGVIEWER )
INSTALL_PROJECT( ${EXAMPLE_NAME} )

INSTALL( FILES ${DATA_FILES} DESTINATION bin )

CMake Error at CMakeLists.txt:14 (INCLUDE_FOR_PROJECT): Unknown CMake command







你可能感兴趣的:(CMAKE)