forked from alasdairmackintosh/google-concurrency-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gclConfig.cmake.in
20 lines (13 loc) · 833 Bytes
/
gclConfig.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@PACKAGE_INIT@
# find_dependency(xx 2.0)
#=============================set variable====================================
# set_and_check(GCL_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
# set(GCL_INCLUDE_DIRS ${PREFIX}/include/gcl ) #set(Foo_LIBRARIES ${PREFIX}/lib/foo-1.2/libfoo.a) #without .cmake.in
# set_and_check(GCL_LIBRARIES "@PACKAGE_INSTALL_LIBRARIES@")
set( @PROJECT_NAME@_LIBRARIES goocon ) #goocon is fake path, since it's quite hard to provide abs path for lib without lots of if, else.
set_and_check( @PROJECT_NAME@_INCLUDE_DIRS @PACKAGE_INCLUDE_DIRS@)
set_and_check( @PROJECT_NAME@_LIBRARY_DIRS @PACKAGE_LIB_DIR@)
include(CMakeFindDependencyMacro)
find_dependency(Threads REQUIRED) #goocon needed package
include(${CMAKE_CURRENT_LIST_DIR}/gclTargets.cmake) #about lib created
check_required_components(gcl)