I have tree.idl file and generated a tree_map.h using MIDL compiler in CMAKE
getting this error C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\atlmfc\include\atlbase.h(2988) : error C2338: 'CAtlExeModuleT' must be used with neither _WINDLL nor _USRDLL defined
I have not added the defination of _WINDLL in my CMakeList.txt