2023-03-01 10:48:50 +08:00
|
|
|
cmake_minimum_required(VERSION 3.12)
|
|
|
|
project(Unvirt LANGUAGES CXX)
|
|
|
|
|
2023-09-24 23:27:20 +08:00
|
|
|
# set languages
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
|
2023-03-01 10:48:50 +08:00
|
|
|
# add libcmo
|
|
|
|
add_subdirectory("../LibCmo" "LibCmo.out")
|
2023-09-24 23:27:20 +08:00
|
|
|
# add ironpad
|
|
|
|
#add_subdirectory("../IronPad" "IronPad.out")
|
2023-03-01 10:48:50 +08:00
|
|
|
|
|
|
|
# setup sources
|
|
|
|
set(unvirt_sources
|
|
|
|
AccessibleValue.cpp
|
|
|
|
CmdHelper.cpp
|
|
|
|
StringHelper.cpp
|
|
|
|
StructFormatter.cpp
|
|
|
|
TerminalHelper.cpp
|
2023-08-31 10:20:10 +08:00
|
|
|
UnvirtContext.cpp
|
2023-03-01 10:48:50 +08:00
|
|
|
Unvirt.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
# generate program
|
|
|
|
add_executable(Unvirt ${unvirt_sources})
|
|
|
|
target_link_libraries(Unvirt
|
|
|
|
PRIVATE
|
|
|
|
LibCmo
|
2023-09-24 23:27:20 +08:00
|
|
|
IronPad
|
2023-03-01 10:48:50 +08:00
|
|
|
)
|
|
|
|
|