2022-07-06 11:03:19 +00:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
2023-01-23 15:36:14 +00:00
|
|
|
|
2023-09-10 19:22:01 +00:00
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
2023-01-23 15:36:14 +00:00
|
|
|
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
|
2023-09-10 19:22:01 +00:00
|
|
|
"Build type options: Debug Release RelWithDebInfo MinSizeRel" FORCE)
|
|
|
|
endif()
|
2023-01-23 15:36:14 +00:00
|
|
|
|
2022-07-06 11:03:19 +00:00
|
|
|
project(wibo LANGUAGES CXX)
|
2022-07-07 17:02:27 +00:00
|
|
|
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
|
|
|
|
|
|
|
find_package(Filesystem REQUIRED)
|
|
|
|
|
2022-07-06 11:03:19 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
2023-12-23 22:34:37 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32 -Wall -fno-pie -no-pie -D_LARGEFILE64_SOURCE")
|
2023-10-04 01:26:30 +00:00
|
|
|
|
2022-07-18 13:54:17 +00:00
|
|
|
include_directories(.)
|
2022-07-06 11:03:19 +00:00
|
|
|
add_executable(wibo
|
2022-07-18 13:54:17 +00:00
|
|
|
dll/advapi32.cpp
|
2023-09-10 03:07:23 +00:00
|
|
|
dll/bcrypt.cpp
|
|
|
|
dll/crt.cpp
|
2022-07-18 13:54:17 +00:00
|
|
|
dll/kernel32.cpp
|
|
|
|
dll/lmgr.cpp
|
2023-09-12 13:44:56 +00:00
|
|
|
dll/mscoree.cpp
|
|
|
|
dll/msvcrt.cpp
|
2023-09-10 03:07:23 +00:00
|
|
|
dll/ntdll.cpp
|
2022-07-18 13:54:17 +00:00
|
|
|
dll/ole32.cpp
|
|
|
|
dll/user32.cpp
|
2023-09-10 03:07:23 +00:00
|
|
|
dll/vcruntime.cpp
|
2022-07-18 13:54:17 +00:00
|
|
|
dll/version.cpp
|
2022-07-06 11:03:19 +00:00
|
|
|
files.cpp
|
2022-09-24 14:59:30 +00:00
|
|
|
handles.cpp
|
2022-07-06 11:03:19 +00:00
|
|
|
loader.cpp
|
|
|
|
main.cpp
|
2023-09-22 00:13:56 +00:00
|
|
|
processes.cpp
|
|
|
|
strutil.cpp
|
2023-09-10 19:22:01 +00:00
|
|
|
)
|
2022-07-07 17:02:27 +00:00
|
|
|
target_link_libraries(wibo PRIVATE std::filesystem)
|
|
|
|
install(TARGETS wibo DESTINATION bin)
|