Skip to content

Commit

Permalink
Hopefully fixed the workers to use the right library
Browse files Browse the repository at this point in the history
  • Loading branch information
ioan-chera committed Jul 28, 2024
1 parent 2e7f4c3 commit ef2ce1b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

- run: sudo apt-get update && sudo apt-get install --fix-missing cmake libfltk1.3-dev libxpm-dev libz-dev python3 && mkdir build && cd build && cmake .. && make -j$(nproc)
- run: sudo apt-get update && sudo apt-get install --fix-missing cmake libjpeg-dev libpng-dev libxpm-dev libz-dev python3 && mkdir build && cd build && cmake .. && make -j$(nproc)

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-compile-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install --fix-missing clang cmake libfltk1.3-dev libxpm-dev libz-dev python3
run: sudo apt-get update && sudo apt-get install --fix-missing clang cmake libjpeg-dev libpng-dev libxpm-dev libz-dev python3
- name: CMake
run: export CC=/usr/bin/clang && export CXX=/usr/bin/clang++ && mkdir build-clang && cd build-clang && cmake .. && make -j$(nproc)
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-compile-clang24.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install --fix-missing clang cmake libfltk1.3-dev libxpm-dev libz-dev python3
run: sudo apt-get update && sudo apt-get install --fix-missing clang cmake libjpeg-dev libpng-dev libxpm-dev libz-dev python3
- name: CMake
run: export CC=/usr/bin/clang && export CXX=/usr/bin/clang++ && mkdir build-clang && cd build-clang && cmake .. && make -j$(nproc)
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install --fix-missing cmake libfltk1.3-dev libxpm-dev libz-dev python3
run: sudo apt-get update && sudo apt-get install --fix-missing cmake libjpeg-dev libpng-dev libxpm-dev libz-dev python3
- name: CMake
run: mkdir build && cd build && cmake .. && make -j$(nproc)
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-compile24.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install --fix-missing cmake libfltk1.3-dev libxpm-dev libz-dev python3
run: sudo apt-get update && sudo apt-get install --fix-missing cmake libjpeg-dev libpng-dev libxpm-dev libz-dev python3
- name: CMake
run: mkdir build && cd build && cmake .. && make -j$(nproc)
- name: Test
Expand Down
17 changes: 15 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ target_include_directories(
target_link_libraries(
eurekasrc
PRIVATE
fltk fltk_gl fltk_images fltk_jpeg fltk_png fltk_z
fltk fltk_gl fltk_images
)

if(APPLE)
Expand All @@ -279,7 +279,20 @@ if(UNIX AND NOT APPLE)
find_package(ZLIB REQUIRED) # ZLIB is expected on Linux separately from FLTK
find_package(JPEG REQUIRED)
find_package(PNG REQUIRED)
target_link_libraries(eurekasrc PUBLIC ${X11_Xpm_LIB} ${ZLIB_LIBRARIES} ${JPEG_LIBRARIES} ${PNG_LIBRARIES})
target_link_libraries(
eurekasrc
PUBLIC
${X11_Xpm_LIB}
${ZLIB_LIBRARIES}
${JPEG_LIBRARIES}
${PNG_LIBRARIES}
)
else()
target_link_libraries(
eurekasrc
PRIVATE
fltk_jpeg fltk_png fltk_z
)
endif()

target_link_libraries(eurekasrc PUBLIC ${OPENGL_LIBRARIES})
Expand Down

0 comments on commit ef2ce1b

Please sign in to comment.