-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6eca93b
commit 278604f
Showing
5 changed files
with
25 additions
and
12 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,18 @@ | ||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") | ||
find_library( COREFOUNDATION_LIBRARY CoreFoundation ) | ||
find_library( IOKIT_LIBRARY IOKit ) | ||
endif() | ||
|
||
# Function to link against the correct libraries on darwin | ||
function(target_link_libraries_darwin) | ||
set(oneValueArgs NAME) | ||
cmake_parse_arguments(TARGET "" "${oneValueArgs}" | ||
"" ${ARGN} ) | ||
|
||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") | ||
target_link_libraries(${TARGET_NAME} | ||
${COREFOUNDATION_LIBRARY} | ||
${IOKIT_LIBRARY} | ||
) | ||
endif() | ||
endfunction() |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
add_executable(DumpPayloads Main.cpp) | ||
target_link_libraries(DumpPayloads firestartercore) | ||
target_link_libraries_darwin(NAME DumpPayloads) | ||
|
||
add_ref_test(NAME DumpPayloads) |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
add_executable(X86Functions Main.cpp) | ||
target_link_libraries(X86Functions firestartercore) | ||
target_link_libraries_darwin(NAME X86Functions) | ||
|
||
add_ref_test(NAME X86Functions) |