mirror of
https://github.com/msojocs/wx-compiler.git
synced 2025-07-19 00:00:04 +08:00
36 lines
743 B
CMake
36 lines
743 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/name_allocator.cpp
|
|
src/wxml/dom_lib/token.cpp
|
|
src/wxml/compiler.cpp
|
|
src/wxml/dom_lib/wxml_dom.cpp
|
|
src/wxml/dom_lib/machine.cpp
|
|
src/wxml/dom_lib/parser.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_test(
|
|
resolve_test
|
|
resolve_path
|
|
)
|
|
|
|
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
|
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
|
include(CPack)
|