module files are parsed for configuration by default
This commit is contained in:
16
test/cxx_custom/cmake/autocmake.cfg
Normal file
16
test/cxx_custom/cmake/autocmake.cfg
Normal 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
|
1
test/cxx_custom/src/CMakeLists.txt
Normal file
1
test/cxx_custom/src/CMakeLists.txt
Normal file
@ -0,0 +1 @@
|
||||
add_executable(example example.cpp)
|
7
test/cxx_custom/src/example.cpp
Normal file
7
test/cxx_custom/src/example.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "Hello World!";
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user