2011-08-17 00:31:26 +04:00
|
|
|
|
|
|
|
find_library(FOO_LIBRARY NAMES foo HINTS "@CMAKE_CURRENT_BINARY_DIR@" )
|
|
|
|
find_path(FOO_INCLUDE_DIR NAMES foo.h HINTS "@CMAKE_CURRENT_SOURCE_DIR@" )
|
|
|
|
|
|
|
|
set(FOO_LIBRARIES ${FOO_LIBRARY})
|
2011-08-18 00:53:35 +04:00
|
|
|
set(FOO_INCLUDE_DIRS "${FOO_INCLUDE_DIR}" "/some/path/with a space/include" )
|
2011-08-17 00:31:26 +04:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(Foo DEFAULT_MSG FOO_LIBRARY FOO_INCLUDE_DIR )
|