-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/resources-init
- Loading branch information
Showing
177 changed files
with
1,099 additions
and
2,220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
add_library(NovelRT-Audio STATIC | ||
AudioService.cpp | ||
) | ||
|
||
target_sources(NovelRT-Audio | ||
PUBLIC | ||
FILE_SET public_headers | ||
TYPE HEADERS | ||
BASE_DIRS include | ||
FILES | ||
include/NovelRT/Audio/Audio.hpp | ||
include/NovelRT/Audio/AudioService.hpp | ||
) | ||
|
||
set_target_properties(NovelRT-Audio | ||
PROPERTIES | ||
EXPORT_NAME Audio | ||
POSITION_INDEPENDENT_CODE ON | ||
) | ||
|
||
target_compile_features(NovelRT-Audio | ||
PUBLIC | ||
cxx_std_17 | ||
) | ||
|
||
target_compile_options(NovelRT-Audio | ||
PRIVATE | ||
$<$<CXX_COMPILER_ID:GNU>:-Wall> | ||
$<$<CXX_COMPILER_ID:GNU>:-Wabi> | ||
$<$<CXX_COMPILER_ID:GNU>:-Werror> | ||
$<$<CXX_COMPILER_ID:GNU>:-Wextra> | ||
$<$<CXX_COMPILER_ID:GNU>:-Wpedantic> | ||
$<$<CXX_COMPILER_ID:GNU>:-pedantic-errors> | ||
|
||
$<$<CXX_COMPILER_ID:Clang>:-Wall> | ||
$<$<CXX_COMPILER_ID:Clang>:-Werror> | ||
$<$<CXX_COMPILER_ID:Clang>:-Wextra> | ||
$<$<CXX_COMPILER_ID:Clang>:-Wpedantic> | ||
$<$<CXX_COMPILER_ID:Clang>:-pedantic-errors> | ||
|
||
$<$<CXX_COMPILER_ID:MSVC>:/W4> | ||
$<$<CXX_COMPILER_ID:MSVC>:/WX> | ||
$<$<CXX_COMPILER_ID:MSVC>:/permissive-> | ||
) | ||
|
||
target_include_directories(NovelRT-Audio PRIVATE "$<TARGET_PROPERTY:Engine,INCLUDE_DIRECTORIES>") | ||
target_link_libraries(NovelRT-Audio | ||
PUBLIC | ||
spdlog | ||
OpenAL | ||
) | ||
|
||
install( | ||
TARGETS NovelRT-Audio | ||
EXPORT NovelRTConfig | ||
LIBRARY DESTINATION lib | ||
FILE_SET public_headers DESTINATION include | ||
) |
Oops, something went wrong.