-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate header file dependencies for test and src.
- Loading branch information
Showing
22 changed files
with
129 additions
and
430 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,19 @@ | ||
# CopyToDir.cmake | ||
|
||
# This function is used to copy files to a directory and it will handle relative paths automatically. | ||
function(copy_to_dir) | ||
set(INCLUDE_EXPORT_DR ${LIBRARY_INCLUDE_DIR} CACHE INTERNAL "Include export directory") | ||
foreach(file ${ARGN}) | ||
get_filename_component(file_name ${file} NAME) | ||
get_filename_component(file_path ${file} PATH) | ||
string(REPLACE "${CMAKE_SOURCE_DIR}/src" "" relative_path "${file_path}") | ||
add_custom_target( | ||
copy_${file_name} ALL | ||
COMMAND ${CMAKE_COMMAND} -E make_directory ${INCLUDE_EXPORT_DR}/${relative_path} | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${file} ${INCLUDE_EXPORT_DR}/${relative_path}/${file_name} | ||
COMMENT "Copying ${file_name} to ${INCLUDE_EXPORT_DR}/${relative_path}" | ||
) | ||
endforeach() | ||
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
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 |
---|---|---|
|
@@ -18,8 +18,6 @@ | |
*/ | ||
#include "page_arena.h" | ||
|
||
#include <stdio.h> | ||
|
||
#include <new> | ||
|
||
namespace common { | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.