- change project layout for better understanding. - update build script for more close to standard cmake way.
38 lines
623 B
CMake
38 lines
623 B
CMake
# Create executable
|
|
add_executable(Unvirt "")
|
|
# Setup sources
|
|
target_sources(Unvirt
|
|
PRIVATE
|
|
AccessibleValue.cpp
|
|
CmdHelper.cpp
|
|
StructFormatter.cpp
|
|
UnvirtContext.cpp
|
|
Unvirt.cpp
|
|
)
|
|
# Setup headers
|
|
target_sources(Unvirt
|
|
PRIVATE
|
|
FILE_SET HEADERS
|
|
FILES
|
|
AccessibleValue.hpp
|
|
CmdHelper.hpp
|
|
StructFormatter.hpp
|
|
UnvirtContext.hpp
|
|
)
|
|
# Setup header infomation
|
|
target_include_directories(Unvirt
|
|
PRIVATE
|
|
"${CMAKE_CURRENT_LIST_DIR}"
|
|
)
|
|
# Setup linked library infomation
|
|
target_link_libraries(Unvirt
|
|
PRIVATE
|
|
YYCC::YYCCommonplace
|
|
LibCmo
|
|
)
|
|
|
|
# Install Unvirt
|
|
install(TARGETS Unvirt
|
|
RUNTIME DESTINATION ${YYCC_INSTALL_BIN_PATH}
|
|
)
|