Skip to content

Commit

Permalink
Merge pull request #16 from JohanMabille/fix_example
Browse files Browse the repository at this point in the history
Fixed example dir in CI
  • Loading branch information
JohanMabille authored Jun 11, 2024
2 parents 3c9c512 + 0043565 commit aaa598b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,20 @@ jobs:
make install
working-directory: build

#- name: build example kernel
# shell: bash -l {0}
# run: |
# mkdir -p build
# cd build
# cmake .. \
# -DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
# -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
# make -j 2
# working-directory: examples
- name: install mesa-lib
shell: bash -l {0}
run: micromamba install mesalib -c conda-forge

- name: build example kernel
shell: bash -l {0}
run: |
mkdir -p build
cd build
cmake .. \
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
make -j 2
working-directory: examples

win:

Expand Down
9 changes: 5 additions & 4 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ project(xeus-qt VERSION 0.0.1)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)

if(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -stdlib=libc++ -mmacosx-version-min=10.8")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -headerpad_max_install_names")
endif()
#if(APPLE)
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -stdlib=libc++ -mmacosx-version-min=10.8")
# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -headerpad_max_install_names")
#endif()

set(nlohmann_json_REQUIRED_VERSION 3.11.3)
# set(CMAKE_C_FLAGS "lrt")
Expand Down Expand Up @@ -47,6 +47,7 @@ elseif(APPLE)
endif()

add_executable(${PROJECT_NAME} ${APP_BUNDLE} ${APP_ICON} ${SOURCES} ${HEADERS} ${UI_HEADERS})
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)

if(APPLE)
set_target_properties(${PROJECT_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/AppleInfo.plist)
Expand Down

0 comments on commit aaa598b

Please sign in to comment.