Ok, for those following along I think I pretty much have this worked
out.
Steps for building with Microsoft Visual c++ 2010 Express
Follow steps 1-3 from
http://www.firebreath.org/display/documentation/Building+with+Visual+Studio+Express
Step 4 needs to be updated with a 2010 section
For VS Express 2010:
1. Open your FireBreath project
a. File -> Open -> Project/Soltion
b.build/FireBreath.sln (Wherever your project file is located)
2. Go to View -> Property Manager
3. Expand ALL_BUILD -> Debug | Win 32
4. Right click on Microsoft.Cpp.Win32.user -> Properties
5. Common Properties -> VC++ Directories
6. Add (WDK DIR)\inc\atl71 to include paths
7. Add (WDK DIR)\inc\mfc42 to include paths
a. It may be neccesary for the mfc42 path to be after the ATL
path and both should be at the end of the list.
8. Add (WDK DIR)\lib\atl\i386 to the library paths
9. It may be necessary to add 'target_link_libraries(${PLUGIN_NAME}
"atlthunk.lib")' to the bottom of the projects projectDef.cmake
These steps should only need to be done once. From there I can just
right click -> build and get a dll...
Also a note for the Using Libraries page, the library stuff cannot go
at the top of the file, it worked for me if I stuck it at the
bottom. If you put it at the top of the file you get this error
message 'Cannot specify link libraries for target "MyProjectTest"
which is not built by this project.'
I have also found that adding this
'target_link_libraries(${PLUGIN_NAME} "atlthunk.lib")'
to my project's projectDef.cmake allows the project to compile without
the pragma statement from my original post. I just put it at the
bottom of the cmake file.
If I can do anything to help with the _ATL_VER problem please let me
know.
John