How to integrate the SCC plug-in of visual studio with my created CMAKE solution / project

All I can find on this issue is a forum post on the kitware website in which I need to add a call SET_TARGET_PROPERTIESto my CMakeLists file, where I set the properties VS_SCCPROJECTNAME, VS_SCCLOCALPATHand VS_SCCPROVIDER. I tried the following snippet, but the plugin still does not ask me when I open the solution and does not edit the automatic verification files. Help will be greatly appreciated!

IF (WIN32)
    SET_TARGET_PROPERTIES (${MY_PROJECT_NAME} PROPERTIES
        VS_SCCPROJECTNAME "Perforce Project"
        VS_SCCLOCALPATH ${THE_ROOT_DIRECTORY_OF_MY_PERFORCE_WORKSPACE_ON_MY_DRIVE}
        VS_SCCPROVIDER "MSSCCI:Perforce SCM"
    )
ENDIF (WIN32)

As a side note, my context menu in Explorer also does not give me the “check” option in the perforce menu group. Perhaps the questions are related?

+3
source share
1 answer

, VS_SCC.

IF (WIN32)
    SET_TARGET_PROPERTIES (${MY_PROJECT_NAME} PROPERTIES
        VS_SCC_PROJECTNAME "Perforce Project"
        VS_SCC_LOCALPATH ${THE_ROOT_DIRECTORY_OF_MY_PERFORCE_WORKSPACE_ON_MY_DRIVE}
        VS_SCC_PROVIDER "MSSCCI:Perforce SCM"
    )
ENDIF (WIN32)

cmake ,

+4

All Articles