mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-20 17:51:19 -05:00
Move include directories to properties for more consistency
This commit is contained in:
@@ -154,27 +154,27 @@ if(WIN32)
|
||||
set_target_properties(avcodec PROPERTIES
|
||||
IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/ext/ffmpeg/lib/avcodec-59.dll"
|
||||
IMPORTED_IMPLIB "${CMAKE_CURRENT_SOURCE_DIR}/ext/ffmpeg/lib/avcodec.lib"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/ext/ffmpeg/include"
|
||||
)
|
||||
|
||||
target_include_directories(avcodec INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/ext/ffmpeg/include")
|
||||
target_link_libraries(openspace-module-globebrowsing PUBLIC avcodec)
|
||||
|
||||
add_library(avformat SHARED IMPORTED)
|
||||
set_target_properties(avformat PROPERTIES
|
||||
IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/ext/ffmpeg/lib/avformat-59.dll"
|
||||
IMPORTED_IMPLIB "${CMAKE_CURRENT_SOURCE_DIR}/ext/ffmpeg/lib/avformat.lib"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/ext/ffmpeg/include"
|
||||
)
|
||||
|
||||
target_include_directories(avformat INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/ext/ffmpeg/include")
|
||||
target_link_libraries(openspace-module-globebrowsing PUBLIC avformat)
|
||||
|
||||
add_library(avutil SHARED IMPORTED)
|
||||
set_target_properties(avutil PROPERTIES
|
||||
IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/ext/ffmpeg/lib/avutil-57.dll"
|
||||
IMPORTED_IMPLIB "${CMAKE_CURRENT_SOURCE_DIR}/ext/ffmpeg/lib/avutil.lib"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/ext/ffmpeg/include"
|
||||
)
|
||||
|
||||
target_include_directories(avutil INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/ext/ffmpeg/include")
|
||||
target_link_libraries(openspace-module-globebrowsing PUBLIC avutil)
|
||||
|
||||
else(WIN32)
|
||||
|
||||
Reference in New Issue
Block a user