Renamed CMake project to "rhubarb"
This commit is contained in:
parent
880c6e45af
commit
1771ed4190
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="CMakeWorkspace" PROJECT_DIR="X:\dev\projects\LipSync" />
|
<component name="CMakeWorkspace" PROJECT_DIR="X:\dev\projects\rhubarb-lip-sync" />
|
||||||
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
||||||
<OptionsSetting value="true" id="Add" />
|
<OptionsSetting value="true" id="Add" />
|
||||||
<OptionsSetting value="true" id="Remove" />
|
<OptionsSetting value="true" id="Remove" />
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
cmake_minimum_required(VERSION 3.3)
|
cmake_minimum_required(VERSION 3.3)
|
||||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.7" CACHE STRING "Minimum OS X deployment version")
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.7" CACHE STRING "Minimum OS X deployment version")
|
||||||
|
|
||||||
project(LipSync)
|
project("Rhubarb Lip Sync")
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra")
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ FILE(GLOB_RECURSE SPHINX_BASE "lib/sphinxbase-5prealpha-2015-08-05/src/libsphinx
|
||||||
FILE(GLOB POCKETSPHINX "lib/pocketsphinx-5prealpha-2015-08-05/src/libpocketsphinx/*.c")
|
FILE(GLOB POCKETSPHINX "lib/pocketsphinx-5prealpha-2015-08-05/src/libpocketsphinx/*.c")
|
||||||
FILE(GLOB CPPFORMAT "lib/cppformat/*.cc")
|
FILE(GLOB CPPFORMAT "lib/cppformat/*.cc")
|
||||||
|
|
||||||
add_executable(LipSync ${SOURCE_FILES} ${SPHINX_BASE} ${POCKETSPHINX} ${CPPFORMAT})
|
add_executable(rhubarb ${SOURCE_FILES} ${SPHINX_BASE} ${POCKETSPHINX} ${CPPFORMAT})
|
||||||
target_link_libraries(LipSync ${Boost_LIBRARIES})
|
target_link_libraries(rhubarb ${Boost_LIBRARIES})
|
||||||
|
|
||||||
function(copy_after_build sourceGlob relativeTargetDirectory)
|
function(copy_after_build sourceGlob relativeTargetDirectory)
|
||||||
# Set `sourcePaths`
|
# Set `sourcePaths`
|
||||||
|
@ -43,7 +43,7 @@ function(copy_after_build sourceGlob relativeTargetDirectory)
|
||||||
# Set `targetPath`
|
# Set `targetPath`
|
||||||
set(targetPath "${CMAKE_BINARY_DIR}/${relativeTargetDirectory}/${fileName}")
|
set(targetPath "${CMAKE_BINARY_DIR}/${relativeTargetDirectory}/${fileName}")
|
||||||
|
|
||||||
add_custom_command(TARGET LipSync POST_BUILD
|
add_custom_command(TARGET rhubarb POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy "${sourcePath}" "${targetPath}"
|
COMMAND ${CMAKE_COMMAND} -E copy "${sourcePath}" "${targetPath}"
|
||||||
COMMENT "Creating '${relativeTargetDirectory}/${fileName}'"
|
COMMENT "Creating '${relativeTargetDirectory}/${fileName}'"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue