module files are parsed for configuration by default

This commit is contained in:
Radovan Bast
2015-07-28 12:22:11 +02:00
parent 2e07af6017
commit faada401f4
26 changed files with 74 additions and 122 deletions

View File

@ -0,0 +1,16 @@
[project]
name: example
[cxx]
source: ../../../modules/cxx.cmake
config: custom
docopt: --cxx=<CXX> C++ compiler [default: g++].
--extra-cxx-flags=<EXTRA_CXXFLAGS> Extra C++ compiler flags [default: ''].
export: 'CXX=%s' % arguments['--cxx']
define: '-DEXTRA_CXXFLAGS="%s"' % arguments['--extra-cxx-flags']
[default_build_paths]
source: ../../../modules/default_build_paths.cmake
[src]
source: ../../../modules/src.cmake

View File

@ -0,0 +1 @@
add_executable(example example.cpp)

View File

@ -0,0 +1,7 @@
#include <iostream>
int main()
{
std::cout << "Hello World!";
return 0;
}