summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ef322a9a..e87878a8 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,7 +1,7 @@
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
-if(${RE3_AUDIO} STREQUAL "OAL")
+if(${REVC_AUDIO} STREQUAL "OAL")
find_package(OpenAL REQUIRED)
find_package(MPG123 REQUIRED)
find_package(SndFile REQUIRED)
@@ -42,37 +42,37 @@ HEADER_DIRECTORIES(header_list)
include_directories(${header_list})
-add_executable(re3 ${Sources})
-target_link_libraries(re3 librw)
-target_link_libraries(re3 Threads::Threads)
+add_executable(reVC ${Sources})
+target_link_libraries(reVC librw)
+target_link_libraries(reVC Threads::Threads)
-if(${RE3_AUDIO} STREQUAL "OAL")
- target_link_libraries(re3 ${OPENAL_LIBRARY})
- target_link_libraries(re3 ${MPG123_LIBRARIES})
- target_link_libraries(re3 ${SNDFILE_LIBRARIES})
+if(${REVC_AUDIO} STREQUAL "OAL")
+ target_link_libraries(reVC ${OPENAL_LIBRARY})
+ target_link_libraries(reVC ${MPG123_LIBRARIES})
+ target_link_libraries(reVC ${SNDFILE_LIBRARIES})
endif()
-target_include_directories(re3
+target_include_directories(reVC
INTERFACE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>
)
-target_compile_definitions(re3
+target_compile_definitions(reVC
PRIVATE
"$<IF:$<CONFIG:DEBUG>,DEBUG,NDEBUG>"
PUBLIC
- "RW_${RE3_PLATFORM}"
+ "RW_${REVC_PLATFORM}"
)
-target_compile_definitions(re3 PRIVATE LIBRW=1 AUDIO_OAL=1)
+target_compile_definitions(reVC PRIVATE LIBRW=1 AUDIO_OAL=1)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
- target_compile_options(re3
+ target_compile_options(reVC
PRIVATE
"-Wall"
)
- if (NOT RE3_PLATFORM_PS2)
- target_compile_options(re3
+ if (NOT REVC_PLATFORM_PS2)
+ target_compile_options(reVC
PRIVATE
"-Wextra"
"-Wdouble-promotion"
@@ -80,13 +80,13 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang
)
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
- target_compile_options(re3
+ target_compile_options(reVC
PUBLIC
/wd4996 /wd4244
)
endif()
-set_target_properties(re3
+set_target_properties(reVC
PROPERTIES
C_STANDARD 11
C_EXTENSIONS OFF
@@ -97,15 +97,15 @@ set_target_properties(re3
PREFIX ""
)
-if(RE3_INSTALL)
- target_include_directories(re3
+if(REVC_INSTALL)
+ target_include_directories(reVC
INTERFACE
- $<INSTALL_INTERFACE:${RE3_INSTALL_INCLUDEDIR}>
+ $<INSTALL_INTERFACE:${REVC_INSTALL_INCLUDEDIR}>
)
install(
- TARGETS re3
- EXPORT re3-targets
+ TARGETS reVC
+ EXPORT reVC-targets
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"