-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #852 from leapmotion/ref-standardincludes
Standardize the Autowiring include structure
- Loading branch information
Showing
180 changed files
with
174 additions
and
91 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,39 @@ | ||
# Installs headers for the named target | ||
# Syntax: | ||
# install_headers TARGET <target> DESTINATION <destination> ... | ||
# | ||
# NOEXCLUDE_STDAFX Also install the precompiled header file | ||
# <target> The target whose sources are to be installed | ||
# <destination> The root of the destination folder where files will be copied | ||
# | ||
# Additional options are passed after FILES to the cmake install command | ||
include(CMakeParseArguments) | ||
|
||
function(install_headers) | ||
set(options NOEXCLUDE_STDAFX) | ||
set(oneValueArgs TARGET DESTINATION) | ||
set(multiValueArgs) | ||
|
||
cmake_parse_arguments(opt "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) | ||
|
||
if(NOT opt_TARGET) | ||
message(FATAL_ERROR "Cannot install files for a nonexistent target") | ||
endif() | ||
|
||
get_target_property(target_SRCS ${opt_TARGET} SOURCES) | ||
foreach(src IN LISTS target_SRCS) | ||
if(NOT ${opt_NOEXCLUDE_STDAFX} AND ${src} STREQUAL "stdafx.h") | ||
continue() | ||
endif() | ||
|
||
get_filename_component(src_ext ${src} EXT) | ||
if(src_ext STREQUAL ".h") | ||
get_filename_component(src_rel ${src} DIRECTORY) | ||
install( | ||
FILES ${src} | ||
DESTINATION ${opt_DESTINATION}/${src_rel} | ||
${opt_UNPARSED_ARGUMENTS} | ||
) | ||
endif() | ||
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 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,11 +1,12 @@ | ||
include_directories( | ||
# Need to make sure all of our tests can find gtest | ||
${PROJECT_SOURCE_DIR}/contrib/gtest-1.7.0/fused-src | ||
${PROJECT_SOURCE_DIR}/autowiring | ||
${PROJECT_SOURCE_DIR}/src/autowiring | ||
${PROJECT_SOURCE_DIR}/src/autotesting | ||
|
||
# All projects in this folder have named access to other projects here | ||
. | ||
) | ||
|
||
add_subdirectory(autonet) | ||
add_subdirectory(autowiring) | ||
add_subdirectory(autotesting) | ||
add_subdirectory(benchmark) |
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 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 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 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
Oops, something went wrong.