Skip to content

Commit 799db58

Browse files
author
Roman Proskuryakov
committed
Build package
1 parent f7e9ec9 commit 799db58

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ before_script:
4646
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DOPENBW_DIR=$HOME/openbw -DOPENBW_ENABLE_UI=$ENABLE_UI
4747

4848
script:
49-
- cmake --build . -- -j4 all
49+
- cmake --build . -- -j4 package

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.1)
2-
project(BWAPI)
2+
project(BWAPI VERSION 4.1.12)
33

44
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
55
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
@@ -18,3 +18,9 @@ if (MSVC)
1818
endif()
1919

2020
add_subdirectory(bwapi)
21+
22+
# Package
23+
24+
set(CPACK_GENERATOR "TGZ")
25+
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
26+
include(CPack)

0 commit comments

Comments
 (0)