# (C) Copyright 2008-2009 SDML (www.sdml.info) # # Use, modification and distribution is subject to the Boost Software # License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # Declare a new executable program. This is currently a simple wrapper around # the add_executable macro. # # origin_executable(progname [Args...]) # # See the CMake documentation for add_executable() arguments. macro(origin_executable progname) # Register the executable as before. add_executable(${progname} ${ARGN}) # Make sure that we're compiling with -Wall and the C++0x flags. set_target_properties(${progname} PROPERTIES COMPILE_FLAGS "-Wall ${ORIGIN_CXX0X_FLAGS}") endmacro()