<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
If I have a .h file and I want to create a library using that .h file and some other file, how can I set the preprocessor definition to some FLAG?<div><br></div><div>So far I think the way to go is the following:</div><div><br>set_source_files_properties(vehicle.h PROPERTIES COMPILE_FLAGS "-DPROJECT")</div><div><br></div><div>is this right? I tried it and it doesn't work</div>                                            <br /><hr />New Windows 7: Find the right PC for you. <a href='http://windows.microsoft.com/shop' target='_new'>Learn more.</a></body>
</html>