Skip to content

Commit

Permalink
Corrected Windows build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ioan-chera committed Jul 29, 2024
1 parent 701d3fc commit a378930
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,12 @@ include(FetchContent)

FetchContent_Declare(
FLTK
GIT_REPOSITORY https://github.com/fltk/fltk
GIT_SHALLOW TRUE
GIT_REPOSITORY https://github.com/fltk/fltk.git
GIT_TAG 9c7a4737784cfd3abe5b71ee8104a700e4f7959f # master at some point
)
FetchContent_MakeAvailable(FLTK)
target_include_directories(
eurekasrc
eurekasrc
PUBLIC
${fltk_BINARY_DIR}
${fltk_SOURCE_DIR}
Expand Down Expand Up @@ -280,11 +279,11 @@ if(UNIX AND NOT APPLE)
find_package(JPEG REQUIRED)
find_package(PNG REQUIRED)
target_link_libraries(
eurekasrc
PUBLIC
${X11_Xpm_LIB}
${ZLIB_LIBRARIES}
${JPEG_LIBRARIES}
eurekasrc
PUBLIC
${X11_Xpm_LIB}
${ZLIB_LIBRARIES}
${JPEG_LIBRARIES}
${PNG_LIBRARIES}
)
else()
Expand All @@ -293,6 +292,11 @@ else()
PRIVATE
fltk_jpeg fltk_png fltk_z
)
target_include_directories(
eurekasrc
PUBLIC
${fltk_SOURCE_DIR}/zlib
)
endif()

target_link_libraries(eurekasrc PUBLIC ${OPENGL_LIBRARIES})
Expand Down
1 change: 1 addition & 0 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
#include "OSXCalls.h"
#include <signal.h>
#elif defined(_WIN32)
#include <ShlObj.h>
#else
#include <sys/types.h>
#include <sys/wait.h>
Expand Down

0 comments on commit a378930

Please sign in to comment.