sdl back
This commit is contained in:
@@ -51,13 +51,23 @@ add_executable(${DUSK_TARGET_NAME})
|
||||
# Add tools
|
||||
add_subdirectory(tools)
|
||||
|
||||
# Add libraries
|
||||
if(DUSK_TARGET_SYSTEM STREQUAL "linux")
|
||||
find_package(SDL2 REQUIRED)
|
||||
find_package(OpenGL REQUIRED)
|
||||
target_link_libraries(${DUSK_TARGET_NAME} PRIVATE
|
||||
SDL2::SDL2
|
||||
OpenGL::GL
|
||||
GL
|
||||
)
|
||||
endif()
|
||||
|
||||
# Add code
|
||||
add_subdirectory(src)
|
||||
|
||||
# Include generated headers
|
||||
target_include_directories(${DUSK_TARGET_NAME}
|
||||
PUBLIC
|
||||
${DUSK_GENERATED_HEADERS_DIR}
|
||||
target_include_directories(${DUSK_TARGET_NAME} PUBLIC
|
||||
${DUSK_GENERATED_HEADERS_DIR}
|
||||
)
|
||||
|
||||
# Postbuild, create PBP file for PSP.
|
||||
|
Reference in New Issue
Block a user