Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #53 from forcedotcom/packaging
Browse files Browse the repository at this point in the history
Fix install target and add cpack support.
  • Loading branch information
cap committed Jun 25, 2014
2 parents c4e923e + 97105c2 commit 86ec3fb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ include(CTest)

add_subdirectory(src)
add_subdirectory(benchmarks)

set(CPACK_GENERATOR "TGZ")
set(CPACK_PACKAGE_FILE_NAME "distributions")
include(CPack)
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ install_cy: $(install_cy_deps) FORCE

install: install_cc install_cy FORCE

package: build_cc FORCE
cd build && $(MAKE) package

install_cc_examples: install_cc FORCE

test_cc_examples: install_cc_examples FORCE
Expand Down
7 changes: 7 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@ set(DISTRIBUTIONS_SOURCE_FILES
models/gp.cc
)

install(DIRECTORY ../include/ DESTINATION include
FILES_MATCHING PATTERN "*.h*")

if(PROTOBUF_FOUND)
set(DISTRIBUTIONS_SOURCE_FILES io/schema.pb.cc ${DISTRIBUTIONS_SOURCE_FILES})
install(DIRECTORY ../distributions/ DESTINATION include/distributions
FILES_MATCHING PATTERN "*.proto")
install(DIRECTORY ../include/ DESTINATION include
FILES_MATCHING PATTERN "*.cc")
endif()

add_library(distributions_shared SHARED ${DISTRIBUTIONS_SOURCE_FILES})
Expand Down

0 comments on commit 86ec3fb

Please sign in to comment.