diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5daf1d15..387400b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,42 +1,42 @@ cmake_minimum_required(VERSION 3.8) -project(re3 C CXX) +project(reVC C CXX) list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") if(WIN32) - set(RE3_AUDIOS "NULL" "OAL" "MSS") + set(REVC_AUDIOS "NULL" "OAL" "MSS") else() - set(RE3_AUDIOS "NULL" "OAL") + set(REVC_AUDIOS "NULL" "OAL") endif() -set(RE3_AUDIO "OAL" CACHE STRING "Audio") +set(REVC_AUDIO "OAL" CACHE STRING "Audio") -set_property(CACHE RE3_AUDIO PROPERTY STRINGS ${RE3_AUDIOS}) -message(STATUS "RE3_AUDIO = ${RE3_AUDIO} (choices=${RE3_AUDIOS})") -set("RE3_AUDIO_${RE3_AUDIO}" ON) -if(NOT RE3_AUDIO IN_LIST RE3_AUDIOS) - message(FATAL_ERROR "Illegal RE3_AUDIO=${RE3_AUDIO}") +set_property(CACHE REVC_AUDIO PROPERTY STRINGS ${REVC_AUDIOS}) +message(STATUS "REVC_AUDIO = ${REVC_AUDIO} (choices=${REVC_AUDIOS})") +set("REVC_AUDIO_${REVC_AUDIO}" ON) +if(NOT REVC_AUDIO IN_LIST REVC_AUDIOS) + message(FATAL_ERROR "Illegal REVC_AUDIO=${REVC_AUDIO}") endif() -if(RE3_INSTALL) +if(REVC_INSTALL) include(GNUInstallDirs) - set(RE3_INSTALL_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}/re3") + set(REVC_INSTALL_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}/reVC") endif() add_subdirectory("vendor/librw") add_subdirectory(src) -if(RE3_INSTALL) +if(REVC_INSTALL) include(CMakePackageConfigHelpers) - configure_package_config_file(re3-config.cmake.in re3-config.cmake + configure_package_config_file(reVC-config.cmake.in reVC-config.cmake INSTALL_DESTINATION "${CMAKE_INSTALL_PREFIX}" ) install( - FILES "${CMAKE_CURRENT_BINARY_DIR}/re3-config.cmake" + FILES "${CMAKE_CURRENT_BINARY_DIR}/reVC-config.cmake" DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}" ) install( - EXPORT re3-targets + EXPORT reVC-targets DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}" ) |