mirror of
https://github.com/msojocs/wx-compiler.git
synced 2025-07-19 00:00:04 +08:00
38 lines
833 B
CMake
38 lines
833 B
CMake
cmake_minimum_required(VERSION 3.0.0)
|
|
project(wx_complier VERSION 0.1.0 LANGUAGES C CXX)
|
|
|
|
include(CTest)
|
|
enable_testing()
|
|
|
|
add_executable(wcc
|
|
src/wcc.cpp
|
|
src/include/wxml.h
|
|
src/wcc/usage.cpp
|
|
src/wxml/rewrite.cpp
|
|
src/wxml/name_allocator.cpp
|
|
src/wxml/dom_lib/token.cpp
|
|
src/wxml/dom_lib/tokenizer.cpp
|
|
src/wxml/dom_lib/parser.cpp
|
|
src/wxml/compiler.cpp
|
|
src/wxml/dom_lib/str_cache.cpp
|
|
src/wxml/dom_lib/wxml_dom.cpp
|
|
src/wxml/dom_lib/machine.cpp
|
|
src/utils/string_utils.cpp
|
|
src/utils/file.cpp
|
|
)
|
|
add_executable(wcsc
|
|
src/wcsc.cpp
|
|
)
|
|
add_executable(
|
|
resolve_path
|
|
test/resolve_path.cpp
|
|
src/wxml/dom_lib/common.cpp
|
|
)
|
|
add_executable(test1
|
|
test/test.cpp
|
|
)
|
|
|
|
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
|
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
|
include(CPack)
|