Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
converted project to use cmake
- Loading branch information
Showing
55 changed files
with
13,560 additions
and
936 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
cmake_minimum_required (VERSION 3.6) | ||
project (ThePackerAttacker) | ||
|
||
# setup some required paths | ||
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin") | ||
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin") | ||
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin") | ||
|
||
foreach( OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES} ) | ||
string( TOUPPER ${OUTPUTCONFIG} UOUTPUTCONFIG ) | ||
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY_${UOUTPUTCONFIG} "${CMAKE_CURRENT_SOURCE_DIR}/bin/${OUTPUTCONFIG}" ) | ||
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY_${UOUTPUTCONFIG} "${CMAKE_CURRENT_SOURCE_DIR}/bin/${OUTPUTCONFIG}" ) | ||
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${UOUTPUTCONFIG} "${CMAKE_CURRENT_SOURCE_DIR}/bin/${OUTPUTCONFIG}" ) | ||
endforeach( OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES ) | ||
|
||
|
||
# set up deps and linkers and include stuff | ||
include_directories ("src") | ||
|
||
set (DEPS_DETOURS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/deps/detours") | ||
include_directories ("${DEPS_DETOURS_DIR}/include") | ||
link_libraries ("${DEPS_DETOURS_DIR}/lib.X86/detours.lib") | ||
|
||
if (WIN32) | ||
link_libraries ("Psapi.lib") | ||
endif() | ||
|
||
|
||
# include our sub projects | ||
add_subdirectory ("src") | ||
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT PackerAttackerInject) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@rmdir /s /q .\build >nul 2>&1 | ||
@rmdir /s /q .\bin >nul 2>&1 | ||
@rmdir /s /q .\deps\detours\lib.X86 >nul 2>&1 | ||
@rmdir /s /q .\deps\detours\bin.X86 >nul 2>&1 | ||
@rmdir /s /q .\deps\detours\src\obj.X86 >nul 2>&1 | ||
@echo Cleared all build files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@if not defined INCLUDE ( | ||
echo Must be run from a "Developer Command Prompt for VS" | ||
) else ( | ||
|
||
if not exist "build" mkdir build | ||
|
||
if exist deps\\detours\\lib.X86\\detours.lib ( | ||
echo NOT BUILDING Detours BECAUSE detours.lib ALREADY EXISTS. | ||
echo To force rebuild of Detours, RUN buildclean.bat | ||
cd build && cmake -G %1 Win32 ..\\ && cd .. | ||
) else ( | ||
echo BUILDING Detours BECAUSE detours.lib DOESN'T EXIST. | ||
cd deps\\detours && nmake && cd ..\\..\\build && cmake -G %1 Win32 ..\\ && cd .. | ||
) | ||
|
||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
buildmsvc.bat "Visual Studio 15 2017" |
Oops, something went wrong.