Issue with cmake when building extension for 3D Slicer

Hi guys,
I’m trying to build the extension using cmake gui on Windows
Extensions — 3D Slicer documentation
Here is the error:

Blockquote
CMake Error: The source “C:/Users/hapha/OneDrive/Documents/python/SlicerTrack/CMakeLists.txt” does not match the source “C:/Users/hapha/OneDrive/Documents/python/SlicerTrack/Track/CMakeLists.txt” used to generate cache. Re-run cmake with a different source directory.

The error seems very generic so I have no idea where to fix. Please help me check this. Thank you.

Here is my folder structure

Blockquote
tree -I ‘Data’
.
├── CMakeLists.txt
├── LICENSE
├── README.md
├── Track
│ ├── CMakeLists.txt
│ ├── README.md
│ ├── Resources
│ │ ├── Icons
│ │ │ ├── Track.png
│ │ │ └── media-control-icons
│ │ │ ├── next.png
│ │ │ ├── pause.png
│ │ │ ├── play.png
│ │ │ ├── previous.png
│ │ │ └── stop.png
│ │ └── UI
│ │ └── Track.ui
│ ├── Testing
│ │ ├── CMakeLists.txt
│ │ └── Python
│ │ └── CMakeLists.txt
│ ├── Track.py
│ ├── pycache
│ │ ├── Track.cpython-39.pyc
│ │ └── test.cpython-39.pyc
│ └── requirements.txt
├── Track.png
├── TrackingDataProcessor
│ ├── README.md
│ ├── TrackingDataProcessor.cpp
│ ├── TrackingDataProcessor.sln
│ └── TrackingDataProcessor.vcxproj
└── original_UI.png

Here is the CMakeList.txt in main extension folder (SlicerTrack)

Blockquote
cmake_minimum_required(VERSION 3.13.4)
project(Track)
set(EXTENSION_HOMEPAGE “https://slicertrack.github.io/”)
set(EXTENSION_CATEGORY “Tracking”)
set(EXTENSION_CONTRIBUTORS "HaPhan Tran, Mubariz Afzal ")
set(EXTENSION_DESCRIPTION “Module providing tracking tools and displacement visualizations”)
set(EXTENSION_ICONURL “http://www.example.com/Slicer/Extensions/Track.png”)
set(EXTENSION_SCREENSHOTURLS “http://www.example.com/Slicer/Extensions/Track/Screenshots/1.png”)
set(EXTENSION_DEPENDS “NA”) # Specified as a list or “NA” if no dependencies
find_package(Slicer REQUIRED)
include(${Slicer_USE_FILE})
add_subdirectory(Track)
include(${Slicer_EXTENSION_GENERATE_CONFIG})
include(${Slicer_EXTENSION_CPACK})

Here is the cmake in the Track module

Blockquote
#-----------------------------------------------------------------------------
set(MODULE_NAME Track)
#-----------------------------------------------------------------------------
set(MODULE_PYTHON_SCRIPTS
${MODULE_NAME}.py
)
set(MODULE_PYTHON_RESOURCES
Resources/Icons/${MODULE_NAME}.png
Resources/UI/${MODULE_NAME}.ui
)
#-----------------------------------------------------------------------------
slicerMacroBuildScriptedModule(
NAME ${MODULE_NAME}
SCRIPTS ${MODULE_PYTHON_SCRIPTS}
RESOURCES ${MODULE_PYTHON_RESOURCES}
WITH_GENERIC_TESTS
)
#-----------------------------------------------------------------------------
if(BUILD_TESTING)
slicer_add_python_unittest(SCRIPT ${MODULE_NAME}.py)
add_subdirectory(Testing)
endif()