|
|
@ -27,13 +27,7 @@ project (CLDLL) |
|
|
|
|
|
|
|
|
|
|
|
set (CLDLL_LIBRARY client) |
|
|
|
set (CLDLL_LIBRARY client) |
|
|
|
|
|
|
|
|
|
|
|
include(CheckIncludeFile) |
|
|
|
add_definitions(-DCLIENT_DLL) |
|
|
|
check_include_file("tgmath.h" HAVE_TGMATH_H) |
|
|
|
|
|
|
|
if(HAVE_TGMATH_H) |
|
|
|
|
|
|
|
add_definitions(-DHAVE_TGMATH_H) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_definitions(-DCLIENT_WEAPONS -DCLIENT_DLL) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(NOT MSVC) |
|
|
|
if(NOT MSVC) |
|
|
|
add_compile_options(-fno-exceptions) # GCC/Clang flag |
|
|
|
add_compile_options(-fno-exceptions) # GCC/Clang flag |
|
|
@ -211,7 +205,7 @@ endif() |
|
|
|
set_target_properties (${CLDLL_LIBRARY} PROPERTIES |
|
|
|
set_target_properties (${CLDLL_LIBRARY} PROPERTIES |
|
|
|
POSITION_INDEPENDENT_CODE 1) |
|
|
|
POSITION_INDEPENDENT_CODE 1) |
|
|
|
|
|
|
|
|
|
|
|
if(APPLE OR WIN32 OR ${CMAKE_SYSTEM_NAME} STREQUAL "Linux") |
|
|
|
if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Android") |
|
|
|
set(CLDLL_NAME "client") |
|
|
|
set(CLDLL_NAME "client") |
|
|
|
set_target_properties(${CLDLL_LIBRARY} PROPERTIES |
|
|
|
set_target_properties(${CLDLL_LIBRARY} PROPERTIES |
|
|
|
OUTPUT_NAME ${CLDLL_NAME} |
|
|
|
OUTPUT_NAME ${CLDLL_NAME} |
|
|
|