-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from LAGonauta/cmake
Migrate from VS solution file to CMake
- Loading branch information
Showing
153 changed files
with
108 additions
and
27,794 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[submodule "externals/alure"] | ||
path = externals/alure | ||
url = https://github.com/LAGonauta/alure | ||
branch = hasLoopPoints | ||
[submodule "externals/metahook"] | ||
path = externals/metahook | ||
url = https://github.com/LAGonauta/metahook | ||
branch = cmake | ||
[submodule "externals/openal-soft"] | ||
path = externals/openal-soft | ||
url = https://github.com/kcat/openal-soft |
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,59 @@ | ||
cmake_minimum_required(VERSION 3.9) | ||
|
||
if(NOT CMAKE_BUILD_TYPE STREQUAL Debug) | ||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) | ||
endif() | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
project(MetaAudio) | ||
|
||
set(SOURCES | ||
src/exportfuncs.cpp | ||
src/plugins.cpp | ||
src/snd_dma.cpp | ||
src/snd_fx.cpp | ||
src/snd_hook.cpp | ||
src/snd_loader.cpp | ||
src/snd_mem.cpp | ||
src/snd_voice.cpp | ||
src/snd_vox.cpp | ||
src/snd_wav.cpp | ||
src/zone.cpp | ||
src/interface.cpp | ||
) | ||
|
||
add_library(MetaAudio SHARED ${SOURCES}) | ||
target_compile_definitions(MetaAudio PRIVATE AUDIO_EXPORTS) | ||
|
||
target_include_directories(MetaAudio | ||
PRIVATE | ||
${PROJECT_SOURCE_DIR}/include | ||
${PROJECT_SOURCE_DIR}/externals/alure/include/AL | ||
${PROJECT_SOURCE_DIR}/externals/openal-soft/include/AL | ||
${PROJECT_SOURCE_DIR}/externals/metahook/include | ||
${PROJECT_SOURCE_DIR}/externals/metahook/include/interface | ||
${PROJECT_SOURCE_DIR}/externals/metahook/HLSDK/common | ||
${PROJECT_SOURCE_DIR}/externals/metahook/HLSDK/cl_dll | ||
${PROJECT_SOURCE_DIR}/externals/metahook/HLSDK/engine | ||
${PROJECT_SOURCE_DIR}/externals/metahook/HLSDK/public | ||
${PROJECT_SOURCE_DIR}/externals/metahook/HLSDK/pm_shared | ||
) | ||
|
||
set(ALSOFT_EXAMPLES OFF) | ||
set(ALSOFT_TESTS OFF) | ||
set(ALSOFT_UTILS OFF) | ||
add_subdirectory(externals/openal-soft) | ||
|
||
set(OPENAL_INCLUDE_DIR "../openal-soft/include/AL") | ||
set(ALURE_INSTALL OFF) | ||
set(ALURE_BUILD_STATIC OFF) | ||
set(ALURE_ENABLE_WAVE OFF) | ||
set(ALURE_ENABLE_VORBIS OFF) | ||
set(ALURE_ENABLE_FLAC OFF) | ||
set(ALURE_BUILD_EXAMPLES OFF) | ||
add_subdirectory(externals/alure) | ||
|
||
add_subdirectory(externals/metahook) | ||
|
||
target_link_libraries(MetaAudio PRIVATE OpenAL alure2) |
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,30 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "x86-Debug", | ||
"generator": "Ninja", | ||
"configurationType": "Debug", | ||
"inheritEnvironments": [ | ||
"msvc_x86" | ||
], | ||
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\MetaAudio\\${workspaceHash}\\build\\${name}", | ||
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\MetaAudio\\${workspaceHash}\\install\\${name}", | ||
"cmakeCommandArgs": "-DOPENAL_LIBRARY=${env.USERPROFILE}\\CMakeBuilds\\MetaAudio\\${workspaceHash}\\build\\${name}\\externals\\openal-soft\\OpenAL32.lib", | ||
"buildCommandArgs": "-v", | ||
"ctestCommandArgs": "" | ||
}, | ||
{ | ||
"name": "x86-Release", | ||
"generator": "Ninja", | ||
"configurationType": "RelWithDebInfo", | ||
"inheritEnvironments": [ | ||
"msvc_x86" | ||
], | ||
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\MetaAudio\\${workspaceHash}\\build\\${name}", | ||
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\MetaAudio\\${workspaceHash}\\install\\${name}", | ||
"cmakeCommandArgs": "-DOPENAL_LIBRARY=${env.USERPROFILE}\\CMakeBuilds\\MetaAudio\\${workspaceHash}\\build\\${name}\\externals\\openal-soft\\OpenAL32.lib", | ||
"buildCommandArgs": "-v", | ||
"ctestCommandArgs": "" | ||
} | ||
] | ||
} |
Oops, something went wrong.