-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add package config file generation for find_package
- no package config version file - moved compile options to test project
- Loading branch information
1 parent
1e91c50
commit 31a9bd3
Showing
4 changed files
with
55 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@PACKAGE_INIT@ | ||
|
||
if(NOT TARGET HippoMocks::HippoMocks) | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") | ||
|
||
include(${CMAKE_CURRENT_LIST_DIR}/HippoMocksTargets.cmake) | ||
endif() |
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,12 +1,19 @@ | ||
|
||
add_library(HippoMocks INTERFACE) | ||
target_include_directories(HippoMocks INTERFACE .) | ||
if (NOT WIN32) | ||
target_compile_options(HippoMocks | ||
INTERFACE | ||
-Wall -Wextra -pedantic -Wno-long-long -std=c++11 | ||
) | ||
endif() | ||
target_include_directories(HippoMocks INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include>) | ||
target_compile_features(HippoMocks INTERFACE cxx_std_11) | ||
|
||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/hippomocks.h | ||
DESTINATION include/) | ||
|
||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/detail | ||
DESTINATION include) | ||
|
||
install( | ||
TARGETS | ||
HippoMocks | ||
EXPORT | ||
HippoMocksTargets | ||
DESTINATION | ||
./ | ||
) |
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