2021-03-15 20:41:38 +03:00
|
|
|
cmake_minimum_required(VERSION 3.1)
|
|
|
|
project(rehlds CXX)
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
message(FATAL_ERROR "CMakeLists.txt Windows platform isn't supported yet. Use msvc/ReHLDS.sln instead it!")
|
|
|
|
endif()
|
|
|
|
|
2021-04-06 22:24:40 +03:00
|
|
|
add_custom_target(appversion DEPENDS
|
|
|
|
COMMAND "${PROJECT_SOURCE_DIR}/rehlds/version/appversion.sh" "${PROJECT_SOURCE_DIR}"
|
|
|
|
)
|
|
|
|
|
2021-03-15 20:41:38 +03:00
|
|
|
add_subdirectory(rehlds)
|
2021-04-11 23:39:09 +03:00
|
|
|
|
|
|
|
if (NOT CMAKE_BUILD_TYPE MATCHES Unittests)
|
|
|
|
add_subdirectory(rehlds/dedicated)
|
|
|
|
add_subdirectory(rehlds/filesystem)
|
|
|
|
add_subdirectory(rehlds/HLTV)
|
|
|
|
endif()
|