Added CMake build system (to facilitate Win64 builds)

Win32 build and tests work under CMake, however I haven't added
install code yet. Win64 build fails due to chkstk.S failing to
assemble.
This commit is contained in:
James Lyon
2013-04-21 11:20:20 +01:00
parent 05fa2e754b
commit 8a81f9e103
5 changed files with 254 additions and 4 deletions

16
config.h.in Normal file
View File

@ -0,0 +1,16 @@
#define CONFIG_TCCDIR "${CMAKE_INSTALL_PREFIX}"
#define TCC_VERSION "${TCC_VERSION}"
#cmakedefine CONFIG_WIN32
#cmakedefine CONFIG_WIN64
#cmakedefine TCC_TARGET_I386
#cmakedefine TCC_TARGET_X86_64
#cmakedefine TCC_TARGET_ARM
#cmakedefine TCC_TARGET_C67
#cmakedefine TCC_TARGET_PE
#define TCC_ARM_VERSION ${TCC_ARM_VERSION}
#cmakedefine TCC_ARM_VFP
#cmakedefine TCC_ARM_EABI
#cmakedefine TCC_ARM_HARDFLOAT