diff --git a/CMakeLists.txt b/CMakeLists.txt index 9007267..a2a8b9e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,11 +24,6 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") add_compile_options(/MT$<$:d>) endif() -# Set output directories -set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib") -set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib") -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") - # Define flags variables for later use if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") set(enableWarningsFlags "-Wall;-Wextra") diff --git a/src/phoneExtraction.cpp b/src/phoneExtraction.cpp index d065dcb..a8e847d 100644 --- a/src/phoneExtraction.cpp +++ b/src/phoneExtraction.cpp @@ -176,7 +176,7 @@ map detectPhones(unique_ptr audioStream, funct try { // Create PocketSphinx configuration - path sphinxModelDirectory(getBinDirectory().parent_path() / "res/sphinx"); + path sphinxModelDirectory(getBinDirectory() / "res/sphinx"); auto config = createConfig(sphinxModelDirectory); // Create phone recognizer diff --git a/tools.cmake b/tools.cmake index 65a475c..9529caa 100644 --- a/tools.cmake +++ b/tools.cmake @@ -7,7 +7,7 @@ function(copy_after_build sourceGlob relativeTargetDirectory) get_filename_component(fileName "${sourcePath}" NAME) # Set `targetPath` - set(targetPath "${CMAKE_BINARY_DIR}/${relativeTargetDirectory}/${fileName}") + set(targetPath "$/${relativeTargetDirectory}/${fileName}") add_custom_command(TARGET rhubarb POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy "${sourcePath}" "${targetPath}"