diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b66574..306f94d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,16 +7,17 @@ find_package(Filesystem REQUIRED) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32 -Wall") +include_directories(.) add_executable(wibo - advapi32.cpp + dll/advapi32.cpp + dll/kernel32.cpp + dll/lmgr.cpp + dll/ole32.cpp + dll/user32.cpp + dll/version.cpp files.cpp - kernel32.cpp - lmgr.cpp loader.cpp main.cpp - ole32.cpp - user32.cpp - version.cpp ) target_link_libraries(wibo PRIVATE std::filesystem) install(TARGETS wibo DESTINATION bin) diff --git a/advapi32.cpp b/dll/advapi32.cpp similarity index 100% rename from advapi32.cpp rename to dll/advapi32.cpp diff --git a/kernel32.cpp b/dll/kernel32.cpp similarity index 100% rename from kernel32.cpp rename to dll/kernel32.cpp diff --git a/lmgr.cpp b/dll/lmgr.cpp similarity index 100% rename from lmgr.cpp rename to dll/lmgr.cpp diff --git a/ole32.cpp b/dll/ole32.cpp similarity index 100% rename from ole32.cpp rename to dll/ole32.cpp diff --git a/user32.cpp b/dll/user32.cpp similarity index 100% rename from user32.cpp rename to dll/user32.cpp diff --git a/version.cpp b/dll/version.cpp similarity index 100% rename from version.cpp rename to dll/version.cpp