[cmake-developers] [PATCH] WINCE: Run Tutorial steps 1-4 as tests for Windows CE

Brad King brad.king at kitware.com
Tue Oct 21 09:27:54 EDT 2014


On 10/21/2014 09:26 AM, Bach, Pascal wrote:
> Your revision looks better ;)
> 
> I even would prefer to not hardcode the SDK  but I was unable to list key entries from the registry.
> 
> Usually all installed SDKs are listed as subkeys of HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows CE Tools\\SDKs in this case it is SDK_AM335X_SK_WEC2013_V310.
> 
> I think the test would be nicer if it checks for available SDKs and just picks the first.
> 
> Any ideas how to do this?

Within a block guarded by if(CMAKE_HOST_WIN32) you could
use execute_process to run the "reg" command-line tool.

-Brad




More information about the cmake-developers mailing list