forked from SamVanheer/HalfLifeAssetManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (33 loc) · 1.22 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.18)
macro(copy_dependencies project_name base_dir)
foreach(lib ${ARGN})
add_custom_command(TARGET ${project_name} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${CMAKE_SOURCE_DIR}/${base_dir}/${lib}"
"$<TARGET_FILE_DIR:${project_name}>")
endforeach()
endmacro()
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO ${CMAKE_BINARY_DIR}/bin)
set(HLAM_VERSION_MAJOR 1)
set(HLAM_VERSION_MINOR 3)
set(HLAM_VERSION_PATCH 0)
project(HL_Tools
VERSION ${HLAM_VERSION_MAJOR}.${HLAM_VERSION_MINOR}.${HLAM_VERSION_PATCH}
DESCRIPTION "Half-Life Modding Tools"
LANGUAGES CXX)
set(EXTERNAL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(TestBigEndian)
TEST_BIG_ENDIAN(IS_BIG_ENDIAN_TARGET)
if(IS_BIG_ENDIAN_TARGET)
set(IS_LITTLE_ENDIAN_VALUE "0")
else()
set(IS_LITTLE_ENDIAN_VALUE "1")
endif()
add_subdirectory(src)