Add CMake build system
Add CMake build system for libraries, tests and samples update_files.py converts build/files into CMake format. build/update-setup-h has been modified to update build/cmake/setup.h.in.
This commit is contained in:
@@ -39,6 +39,11 @@ cat_common_options_for()
|
||||
cmd="$cmd | sed -e '/^\/\//d' \
|
||||
-e 's@ *//.*\$@@' \
|
||||
-e 's/# *define \(.\+\) \+1 *\$/#define \1 0/'"
|
||||
elif [ $2 = "build/cmake/setup.h.in" ]; then
|
||||
# The setup.h.in template for cmake needs special processing
|
||||
cmd="$cmd | sed -e '/^\/\//d' \
|
||||
-e 's@ *//.*\$@@' \
|
||||
-e 's/# *define \(.\+\) \+\(1\|0\) *\$/#cmakedefine01 \1/'"
|
||||
fi
|
||||
|
||||
eval $cmd
|
||||
@@ -97,10 +102,12 @@ update_common_setup_h include/wx/gtk/setup0.h
|
||||
update_common_setup_h include/wx/osx/setup0.h
|
||||
update_common_setup_h include/wx/univ/setup0.h
|
||||
update_common_setup_h setup.h.in
|
||||
update_common_setup_h build/cmake/setup.h.in
|
||||
|
||||
update_msw_setup_h include/wx/msw/setup0.h
|
||||
update_msw_setup_h include/wx/gtk/setup0.h
|
||||
update_msw_setup_h setup.h.in
|
||||
update_msw_setup_h build/cmake/setup.h.in
|
||||
|
||||
update_single_setup_h wxUniv include/wx/univ/setup_inc.h include/wx/univ/setup0.h
|
||||
|
||||
|
Reference in New Issue
Block a user