Skip to content

Commit

Permalink
Attempt at more modern CMake and updated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasWM committed Feb 9, 2024
1 parent e3c39ff commit 41d244a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/mswindows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
runs-on: windows-latest
steps:
- name: Get sources
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Get FLTK
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: fltk/fltk
path: fltk
- name: Get newt64
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: MatthiasWM/NEWT64
path: newt64
Expand Down
21 changes: 6 additions & 15 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,7 @@ if ( ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" )
)
target_link_libraries ( Einstein
${system_libs}
fltk
fltk_images
fltk_png
fltk_z
PRIVATE fltk::fltk fltk::images fltk::png fltk::z
pthread
"-framework AddressBook"
"-framework AudioUnit"
Expand All @@ -245,7 +242,7 @@ if ( ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" )
)
target_link_libraries ( EinsteinTests
${system_libs}
fltk
PRIVATE fltk::fltk
pthread
"-framework AddressBook"
"-framework AudioUnit"
Expand Down Expand Up @@ -301,15 +298,12 @@ elseif ( ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL
)
target_link_libraries ( Einstein
${system_libs}
fltk
fltk_images
fltk_png
fltk_z
PRIVATE fltk::fltk fltk::images fltk::png fltk::z
pthread
)
target_link_libraries ( EinsteinTests
${system_libs}
fltk
PRIVATE fltk::fltk
pthread
)

Expand Down Expand Up @@ -382,16 +376,13 @@ elseif ( WIN32 )
)
target_link_libraries ( Einstein
${system_libs}
fltk
fltk_images
fltk_png
fltk_z
PRIVATE fltk::fltk fltk::images fltk::png fltk::z
winmm
gdiplus
)
target_link_libraries ( EinsteinTests
${system_libs}
fltk
PRIVATE fltk::fltk
gdiplus
)

Expand Down

0 comments on commit 41d244a

Please sign in to comment.