mirror of
https://github.com/DaedalusX64/daedalus.git
synced 2024-05-18 03:50:47 -04:00
Try to fix linux build
This commit is contained in:
parent
22e7d34dbc
commit
0e5a430752
|
@ -3,4 +3,6 @@ project (DaedalusX64 LANGUAGES C CXX ASM)
|
|||
|
||||
message(${CMAKE_SYSTEM_PROCESSOR} " Detected")
|
||||
|
||||
INCLUDE(FindPkgConfig)
|
||||
|
||||
add_subdirectory(Source)
|
|
@ -168,8 +168,13 @@ if(DAEDALUS_SDL)
|
|||
|
||||
if(NOT PSP)
|
||||
# PSP is not needed as it uses built-in native font
|
||||
find_package(SDL2_ttf REQUIRED)
|
||||
link_libraries(SDL2_ttf::SDL2_ttf)
|
||||
find_package(SDL2_ttf QUIET)
|
||||
if(SDL2_ttf_FOUND)
|
||||
link_libraries(SDL2_ttf::SDL2_ttf)
|
||||
else()
|
||||
PKG_SEARCH_MODULE(SDL2_TTF REQUIRED SDL2_ttf>=2.0.0)
|
||||
link_libraries(${SDL2_TTF_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
endif(DAEDALUS_SDL)
|
||||
|
||||
|
|
|
@ -1,24 +1,11 @@
|
|||
|
||||
file(GLOB SRC_FILES Graphics/*.cpp HLEGraphics/*.cpp Input/*.cpp Interface/*.cpp)
|
||||
|
||||
add_library(SysGL OBJECT ${SRC_FILES})
|
||||
|
||||
find_package(OpenGL REQUIRED)
|
||||
target_include_directories(SysGL PUBLIC ${OPENGL_INCLUDE_DIR})
|
||||
link_libraries(OpenGL::GL)
|
||||
|
||||
find_package(GLEW REQUIRED)
|
||||
target_include_directories(SysGL PUBLIC ${GLEW_INCLUDE_DIRS})
|
||||
link_libraries(GLEW::GLEW)
|
||||
|
||||
find_package(SDL2 CONFIG REQUIRED)
|
||||
target_include_directories(SysGL PUBLIC ${SDL2_INCLUDE_DIRS})
|
||||
link_libraries(SDL2::SDL2)
|
||||
|
||||
# PSP is not needed as it uses built-in native font
|
||||
find_package(SDL2_ttf REQUIRED)
|
||||
target_include_directories(SysGL PUBLIC ${SDL2_TTF_INCLUDE_DIRS})
|
||||
link_libraries(SDL2_ttf::SDL2_ttf)
|
||||
|
||||
install(FILES ${PROJECT_SOURCE_DIR}/Source/SysGL/HLEGraphics/n64.psh DESTINATION DaedalusX64)
|
||||
|
||||
|
|
Loading…
Reference in a new issue