Skip to content

Commit

Permalink
Software Quality of Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
gzaffin committed Oct 6, 2024
1 parent 8a03ee2 commit ce5b9dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ if(MSVC OR MINGW)
cmake_minimum_required(VERSION 3.10)
endif()

if(LINUX OR APPLE)
if(UNIX OR APPLE)
cmake_minimum_required(VERSION 3.0.2)
endif()

if(MSVC)
find_package(SDL2 CONFIG REQUIRED)
endif()
if(LINUX OR MINGW)
if(UNIX OR MINGW)
find_package(PkgConfig REQUIRED)
pkg_check_modules(SDL2 REQUIRED sdl2)
endif()
Expand All @@ -28,7 +28,7 @@ add_subdirectory(src)

file(GLOB SOURCES nlg.c sdlplay.c)

if(MSVC OR LINUX OR MINGW OR APPLE)
if(MSVC OR UNIX OR MINGW OR APPLE)
include_directories(src)
endif()

Expand All @@ -38,7 +38,7 @@ if(MSVC)
target_link_libraries(mdxplay PRIVATE mdxmini SDL2::SDL2 SDL2::SDL2main)
endif()

if(LINUX OR MINGW OR APPLE)
if(UNIX OR MINGW OR APPLE)
target_link_libraries(mdxplay PRIVATE mdxmini m ${SDL2_LIBRARIES})
target_include_directories(mdxplay PUBLIC ${SDL2_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/src)
target_compile_options(mdxplay PUBLIC ${SDL2_FLAGS} ${SDL2_FLAGS_OTHERS})
Expand Down

0 comments on commit ce5b9dc

Please sign in to comment.