Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding find package support for gmock, jsoncpp, zeromq, and zeromq c+…
…+ bindings
- Loading branch information
Julio Delgado
committed
Oct 22, 2013
1 parent
d56ae24
commit eea3aeb
Showing
3 changed files
with
51 additions
and
46 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,33 @@ | ||
# Copyright (c) 2013 Julio Delgado Mangas <julio.delgadomangas@epfl.ch> | ||
# | ||
# - Try to find Google's gmock | ||
# This module defines | ||
# | ||
# GMOCK_FOUND | ||
# GMOCK_INCLUDE_DIRS | ||
# GMOCK_LIBRARIES | ||
# GTEST_LIBRARIES | ||
|
||
find_path(GMOCK_INCLUDE_DIR gmock/gmock.h) | ||
find_path(GTEST_INCLUDE_DIR gtest/gtest.h) | ||
|
||
find_library(GMOCK_LIB NAMES libgmock.a) | ||
find_library(GMOCK_LIB_MAIN NAMES libgmock_main.a) | ||
|
||
set(GMOCK_LIBRARIES ${GMOCK_LIB} ${GMOCK_LIB_MAIN}) | ||
set(GMOCK_INCLUDE_DIRS ${GMOCK_INCLUDE_DIR}) | ||
set(GTEST_INCLUDE_DIRS ${GTEST_INCLUDE_DIR}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(gmock DEFAULT_MSG | ||
GMOCK_LIB | ||
GMOCK_LIB_MAIN | ||
GMOCK_INCLUDE_DIR | ||
GTEST_INCLUDE_DIR | ||
) | ||
|
||
mark_as_advanced(GMOCK_LIB | ||
GMOCK_LIB_MAIN | ||
GMOCK_INCLUDE_DIR | ||
GTEST_INCLUDE_DIR | ||
) |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) 2013 Stefan Eilemann <eile@eyescale.ch> | ||
# | ||
# - Try to find 0MQ C++ bindings | ||
# This module defines | ||
# | ||
# ZMQCPP_FOUND | ||
# ZMQCPP_INCLUDE_DIRS | ||
|
||
find_path(ZMQCPP_INCLUDE_DIR zmq.hpp) | ||
|
||
set(ZMQCPP_INCLUDE_DIRS ${ZMQ_INCLUDE_DIR}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(zmqcpp DEFAULT_MSG | ||
ZMQCPP_INCLUDE_DIR | ||
) | ||
|
||
mark_as_advanced(ZMQCPP_INCLUDE_DIR) |