mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-07 21:05:42 +00:00
New subproject/data locations: - presets/presets-cream_of_the_crop: https://github.com/projectM-visualizer/presets-cream-of-the-crop - presets/presets-En_D: https://github.com/projectM-visualizer/presets-en-d - presets/textures: https://github.com/projectM-visualizer/presets-milkdrop-texture-pack - src/EyeTune: https://github.com/projectM-visualizer/frontend-uwp - src/museum: https://github.com/projectM-visualizer/museum - src/projectm-android: https://github.com/projectM-visualizer/examples-android - src/projectM-emscripten: https://github.com/projectM-visualizer/examples-emscripten - src/projectM-jack: https://github.com/projectM-visualizer/frontend-qt - src/projectM-libvisual: https://github.com/projectM-visualizer/frontend-libvisual-plug-in - src/projectM-libvisual-alsa: Deleted. - src/projectM-moviegen: https://github.com/projectM-visualizer/tools-moviegen - src/projectM-MusicPlugin: https://github.com/projectM-visualizer/frontend-music-plug-in - src/projectM-pulseaudio: https://github.com/projectM-visualizer/frontend-qt - src/projectM-qt: https://github.com/projectM-visualizer/frontend-qt - src/projectM-sdl: src/sdl-test-ui - src/projectM-test: tests
45 lines
1.3 KiB
CMake
45 lines
1.3 KiB
CMake
message(STATUS "Using host CMake version: ${CMAKE_VERSION}")
|
|
|
|
if("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows")
|
|
# On Windows, using vcpkg to install and build is the best practice.
|
|
set(VCPKG "$ENV{VCPKG_INSTALLATION_ROOT}/vcpkg.exe")
|
|
execute_process(COMMAND "${VCPKG}" --triplet=x64-windows install glew sdl2
|
|
|
|
RESULT_VARIABLE result
|
|
)
|
|
elseif("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Linux")
|
|
# On Ubuntu, installing the required dev packages is sufficient
|
|
message(STATUS "Updating apt package sources")
|
|
execute_process(COMMAND sudo apt-get update
|
|
COMMAND sudo apt-get -f install
|
|
|
|
RESULT_VARIABLE result
|
|
)
|
|
|
|
if(NOT result EQUAL 0)
|
|
message(FATAL_ERROR "Could not update apt package lists")
|
|
endif()
|
|
|
|
execute_process(COMMAND sudo apt-get install
|
|
libgl1-mesa-dev
|
|
mesa-common-dev
|
|
libsdl2-dev
|
|
libglm-dev
|
|
llvm-dev
|
|
|
|
RESULT_VARIABLE result
|
|
)
|
|
|
|
elseif("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Darwin")
|
|
# macOS uses Homebrew to install additional software packages.
|
|
execute_process(COMMAND brew update
|
|
COMMAND brew install sdl2
|
|
|
|
RESULT_VARIABLE result
|
|
)
|
|
endif()
|
|
|
|
if(NOT result EQUAL 0)
|
|
message(FATAL_ERROR "A command returned bad exit status")
|
|
endif()
|