1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00
rpcs3/3rdparty/libusb/CMakeLists.txt

26 lines
738 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.0)
2020-02-21 20:41:34 +01:00
project(libusb)
2020-02-21 20:41:34 +01:00
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules")
2021-05-02 21:59:32 +02:00
set(LIBUSB_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libusb)
2020-02-21 20:41:34 +01:00
option(WITH_DEBUG_LOG "enable debug logging" OFF)
# if debug logging is enabled, by default enable logging
option(WITH_LOGGING "if false, disable all logging" ON)
option(WITHOUT_PTHREADS "force pthreads to not be used. if on, then they are used based on detection logic" OFF)
set(LIBUSB_MAJOR 1)
set(LIBUSB_MINOR 0)
2022-04-28 19:18:12 +02:00
set(LIBUSB_MICRO 26)
2020-02-21 20:41:34 +01:00
macro(append_compiler_flags)
foreach(FLAG IN ITEMS ${ARGN})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${FLAG}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${FLAG}")
endforeach()
endmacro()
include(libusb.cmake)