How to compile the file conditionally in the Visual Studio 2008? RRS feed

  • 질문

  • Hello, I have a question about managing the project files in the Visual Studio 2008.

    I want to make a Visual C++ project file to compile the file conditionally, but I don't know how to do it.
    For example, the makefile in the GCC can set the conditional compilation like the followings:

    obj-$(CONFIG_DEBUG) = debug_msg.o
    obj-$(CONFIG_PROJECT_DELTA) = delta_proc.o

    How can I set the Visual C++ project file to set the conditional compilation option, if it is available?
    There is the configure header file (autoconf.h, for example) and I want to make a project file to execute the conditional compilation according to the header file's definition.
    2009년 8월 7일 금요일 오전 2:09