-
Notifications
You must be signed in to change notification settings - Fork 57
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
23 changed files
with
132 additions
and
429 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,21 @@ | ||
# CopyToDir.cmake | ||
|
||
# This function is used to copy files to a directory. | ||
function(copy_to_dir) | ||
set(INCLUDE_EXPORT_DR ${LIBRARY_INCLUDE_DIR} CACHE INTERNAL "Include export directory") | ||
message(STATUS "Copying files to ${INCLUDE_EXPORT_DR}") | ||
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 ${file} ${INCLUDE_EXPORT_DR}/${relative_path}/${file_name} | ||
COMMENT "Copying ${file_name} to ${INCLUDE_EXPORT_DR}/${relative_path}" | ||
message(STATUS "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.