Re: [CMake] How to activate SSE2 only for Win32 architecture build

2015-03-06 Thread Kevin MOLCARD
like that: if(CMAKE_SIZEOF_VOID_P EQUAL 4) # 32-bit SET(CMAKE_CXX_FLAGS "/arch:SSE2") endif() -- Kevin Molcard Senior Software Engineer t.+33 438 020 555 — f.+33 438 020 525 <http://www.arturia.com> -- Powered by www.kitware.com Please keep messages on-topic and che

[CMake] How to activate SSE2 only for Win32 architecture build

2015-03-06 Thread Kevin MOLCARD
Hi all, I would like to activate sse2 on my Windows build but only for 32 bit. I am using the foolowing code: SET(CMAKE_CXX_FLAGS "/arch:SSE2") However, this generates a warning for x64 build: ignoring unknown option '/arch:SSE2' Indeed, this is not needed for x64 because SSE2 is activated by d

[CMake] Add resource file (.r) to Xcode project

2013-10-18 Thread Kevin Molcard
Hi all, I am pretty new to CMake and I am trying to port an AudioUnit project. Therefore, I have to compile a resource file (.r) with the Rez compiler. Is it possible to do that with Cmake? So far the only way to do that is to manually call the Rez compiler through add_custom_command. Thanks i