Skip to content

Commit

Permalink
Initial version of CozConfig.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
xd009642 committed Oct 8, 2019
1 parent ab9cb71 commit 3ccaf3c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions FindCoz.cmake.in
@@ -0,0 +1,19 @@


SET(COZDIR destdir)

find_path(COZ_INCLUDE_DIR
NAMES coz.h
PATHS ${COZ_DIR}
)

find_file(COZ_LIBRARY
NAMES libcoz.so
PATHS ${COZ_DIR}
)

set(COZ_FOUND (COZ_INCLUDE_DIR AND COZ_LIBRARY))

message(INFO " ${COZ_INCLUDE_DIR} ${COZ_LIBRARY} ${COZ_FOUND}")

mark_as_advanced(COZ_FOUND COZ_INCLUDE_DIR COZ_LIBRARY)
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -9,7 +9,9 @@ update-gh-pages:: all

install:: all
@echo $(LOG_PREFIX) Installing coz to prefix $(prefix) $(LOG_SUFFIX)
@sed 's@destdir@"${DESTDIR}${prefix}"@g' FindCoz.cmake.in > FindCoz.cmake
@$(INSTALL) -D coz $(DESTDIR)$(bindir)/coz
@$(INSTALL) -D FindCoz.cmake $(DESTDIR)$(bindir)/FindCoz.cmake
@$(INSTALL) -D libcoz/libcoz.so $(DESTDIR)$(pkglibdir)/libcoz.so
@$(INSTALL) -D include/coz.h $(DESTDIR)$(incdir)/coz.h
@mkdir -p $(DESTDIR)$(man1dir)
Expand Down

0 comments on commit 3ccaf3c

Please sign in to comment.