1.how to build a project in which you can choose which source to run.(the original blog:添加链接描述)
(1).total construction
include math1 math2 src CMakeLists.txt are what we need to build and others will be built automatically.
(2).CMakeLists.txt in c_test.
(3).config.h.in in c_test.
when using the command configure_file we need to build config.h.in by hands.
(4).in include
(5).in math1 red is what we need to buid
the content of CMakeLists.txt in math1
(6).in src
(7).the command in terminus
cd c_test
cmake .
make
./Demo
ccmake .
cmake.
make
./Demo