wibo/CMakeLists.txt

40 lines
882 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.13)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
"Build type options: Debug Release RelWithDebInfo MinSizeRel" FORCE)
endif()
project(wibo LANGUAGES CXX)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(Filesystem REQUIRED)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32 -Wall -fno-pie -no-pie")
2022-07-18 13:54:17 +00:00
include_directories(.)
add_executable(wibo
2022-07-18 13:54:17 +00:00
dll/advapi32.cpp
dll/bcrypt.cpp
dll/crt.cpp
2022-07-18 13:54:17 +00:00
dll/kernel32.cpp
dll/lmgr.cpp
dll/mscoree.cpp
dll/msvcrt.cpp
dll/ntdll.cpp
2022-07-18 13:54:17 +00:00
dll/ole32.cpp
dll/user32.cpp
dll/vcruntime.cpp
2022-07-18 13:54:17 +00:00
dll/version.cpp
files.cpp
handles.cpp
loader.cpp
main.cpp
processes.cpp
strutil.cpp
)
target_link_libraries(wibo PRIVATE std::filesystem)
install(TARGETS wibo DESTINATION bin)