Skip to content

Commit 01613e8

Browse files
Merge pull request #46 from SylvainCorlay/update-xwidgets
Update xwidgets
2 parents 3910694 + bfae0d7 commit 01613e8

File tree

5 files changed

+31
-22
lines changed

5 files changed

+31
-22
lines changed

.appveyor.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ install:
2828
- conda config --set always_yes yes --set changeps1 no
2929
- conda update -q conda
3030
- conda info -a
31-
- conda install gtest cmake xeus=0.18.1 cppzmq=4.3.0 xproperty=0.8 xtl=0.5.2 xwidgets=0.16.0 -c conda-forge
31+
# Install host dependencies
32+
- conda install xeus=0.18.1 cppzmq=4.3.0 xproperty=0.8.1 xwidgets=0.16.1 -c conda-forge
33+
# Install build dependencies
34+
- conda install gtest cmake -c conda-forge
3235
- cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%MINICONDA%\\LIBRARY -DBUILD_TESTS=ON .
3336
- nmake
3437
- nmake test_xplot

.travis.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,19 @@ install:
1717
- hash -r
1818
- conda config --set always_yes yes --set changeps1 no
1919
- conda update -q conda
20-
- conda install gtest cmake xeus=0.18.1 cppzmq=4.3.0 xproperty=0.8 xtl=0.5.2 gcc-7 xwidgets=0.16.0 -c QuantStack -c conda-forge
20+
# Install host dependencies
21+
- conda install xeus=0.18.1 cppzmq=4.3.0 xproperty=0.8.1 xwidgets=0.16.1 -c conda-forge
22+
# Install build dependencies
23+
- conda install cmake
24+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
25+
conda install gxx_linux-64 -c conda-forge;
26+
fi
27+
# Activate root environment
28+
- source activate root
2129
# Testing
2230
- mkdir build
2331
- cd build
24-
- cmake -D CMAKE_INSTALL_PREFIX=$HOME/miniconda/ -D DOWNLOAD_GTEST=ON ..
32+
- cmake -D CMAKE_INSTALL_PREFIX=$HOME/miniconda/ -D DOWNLOAD_GTEST=ON -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX ..
2533
- make -j2 install
2634
- make -j2 test_xplot
2735
- cd test

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ message(STATUS "xplot binary version: v${XPLOT_BINARY_VERSION}")
7575
find_package(cppzmq 4.3.0 REQUIRED)
7676
find_package(xtl 0.5.2 REQUIRED)
7777
find_package(xeus 0.18.1 REQUIRED)
78-
find_package(xwidgets 0.16.0 REQUIRED)
78+
find_package(xwidgets 0.16.1 REQUIRED)
7979

8080
# Source files
8181
# ============

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ All the dependencies of xplot are available for the conda package manager.
7979

8080
| `xplot` | `xwidgets` | `xeus` |
8181
|---------|-------------|-----------------|
82-
| master | ~0.16.0 | >=0.18.1,<0.19 |
82+
| master | ~0.16.1 | >=0.18.1,<0.19 |
8383
| 0.11.0 | ~0.16.0 | >=0.18.1,<0.19 |
8484
| 0.10.0 | ~0.15.0 | >=0.17.0,<0.18 |
8585
| 0.9.2 | ~0.13.1 | >=0.14.1,<0.15 |

test/CMakeLists.txt

+15-17
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ message(STATUS "Forcing tests build type to Release")
1212
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
1313

1414
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
15-
project(xwidgets-test)
15+
project(xplot-test)
1616

17-
find_package(xwidgets REQUIRED CONFIG)
18-
set(XWIDGETS_INCLUDE_DIR ${xwidgets_INCLUDE_DIRS})
17+
find_package(xplot REQUIRED CONFIG)
18+
set(XPLOT_INCLUDE_DIR ${xplot_INCLUDE_DIRS})
1919
endif ()
2020

2121
# Dependencies
@@ -45,10 +45,10 @@ if(DOWNLOAD_GTEST OR GTEST_SRC_DIR)
4545
# Add googletest directly to our build. This defines
4646
# the gtest and gtest_main targets.
4747
add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/googletest-src
48-
${CMAKE_CURRENT_BINARY_DIR}/googletest-build)
48+
${CMAKE_CURRENT_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL)
4949

5050
set(GTEST_INCLUDE_DIRS "${gtest_SOURCE_DIR}/include")
51-
set(GTEST_BOTH_LIBRARIES gtest_main gtest)
51+
set(GTEST_BOTH_LIBRARIES gtest_main gtest)
5252
else()
5353
find_package(GTest REQUIRED)
5454
endif()
@@ -81,20 +81,18 @@ if("${isSystemDir}" STREQUAL "-1")
8181
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
8282
endif("${isSystemDir}" STREQUAL "-1")
8383

84-
set(XPLOT_TEST_TARGET test_xplot)
85-
86-
add_executable(${XPLOT_TEST_TARGET} ${XPLOT_TESTS} ${XPLOT_HEADERS})
84+
add_executable(test_xplot ${XPLOT_TESTS} ${XPLOT_HEADERS})
8785
if(DOWNLOAD_GTEST OR GTEST_SRC_DIR)
88-
add_dependencies(${XPLOT_TEST_TARGET} gtest_main)
86+
add_dependencies(test_xplot gtest_main)
8987
endif()
9088

91-
target_compile_features(${XPLOT_TEST_TARGET} PRIVATE cxx_std_14)
89+
target_compile_features(test_xplot PRIVATE cxx_std_14)
9290

93-
target_link_libraries(${XPLOT_TEST_TARGET}
94-
PUBLIC xtl
95-
PUBLIC xeus
96-
PUBLIC xwidgets
97-
PUBLIC xplot
98-
PRIVATE ${GTEST_BOTH_LIBRARIES}
99-
PRIVATE ${CMAKE_THREAD_LIBS_INIT})
91+
target_link_libraries(test_xplot
92+
PUBLIC xtl
93+
PUBLIC xeus
94+
PUBLIC xwidgets
95+
PUBLIC xplot
96+
PRIVATE ${GTEST_BOTH_LIBRARIES}
97+
PRIVATE ${CMAKE_THREAD_LIBS_INIT})
10098

0 commit comments

Comments
 (0)