Skip to content

Commit

Permalink
Add cmake files that will allow dmclock to be incorporated in outside
Browse files Browse the repository at this point in the history
cmake projects.

Signed-off-by: J. Eric Ivancich <[email protected]>
  • Loading branch information
ivancich committed May 26, 2016
1 parent 87345f9 commit 0b299a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dmclock-config.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# - Config file for the FooBar package
# It defines the following variables
# DMCLOCK_INCLUDE_DIRS - include directories for FooBar
# DMCLOCK_LIBRARIES - libraries to link against

# Compute paths
get_filename_component(DMCLOCK_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(DMCLOCK_INCLUDE_DIRS "${DMCLOCK_CMAKE_DIR}/src")
# set(DMCLOCK_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@")

# Our library dependencies (contains definitions for IMPORTED targets)
if(NOT TARGET dmclock AND NOT dmclock_BINARY_DIR)
include("${DMCLOCK_CMAKE_DIR}/dmclock-targets.cmake")
endif()

# These are IMPORTED targets created by FooBarTargets.cmake
set(DMCLOCK_LIBRARIES dmclock)
1 change: 1 addition & 0 deletions dmclock-targets.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export(PACKAGE dmclock)

0 comments on commit 0b299a7

Please sign in to comment.