mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Previously, it was all controlled from the global init (applied to all projects), but some projects need different options. With these changes, you can disable the common options applied in the 'add_module' macro, and set your own if desired.
42 lines
931 B
CMake
42 lines
931 B
CMake
cmake_minimum_required( VERSION 3.16 )
|
|
add_module( "lib" "tier1" "vpc" ${FOLDER_CONTEXT} TRUE TRUE )
|
|
|
|
start_sources()
|
|
|
|
add_sources( SOURCE_GROUP "Network"
|
|
"NetAdr.cpp"
|
|
"NetKey.cpp"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Utility"
|
|
"bitbuf.cpp"
|
|
"generichash.cpp"
|
|
"lzss.cpp"
|
|
"splitstring.cpp"
|
|
"stringpool.cpp"
|
|
"strtools.cpp"
|
|
"utlbuffer.cpp"
|
|
"utlstring.cpp"
|
|
"characterset.cpp"
|
|
)
|
|
|
|
add_sources( SOURCE_GROUP "Private"
|
|
"cmd.cpp"
|
|
"cvar.cpp"
|
|
)
|
|
|
|
file( GLOB TIER1_PUBLIC_HEADERS
|
|
"${ENGINE_SOURCE_DIR}/public/tier1/*"
|
|
)
|
|
add_sources( SOURCE_GROUP "Public"
|
|
"${TIER1_PUBLIC_HEADERS}"
|
|
"${ENGINE_SOURCE_DIR}/public/iconcommand.h"
|
|
"${ENGINE_SOURCE_DIR}/public/iconvar.h"
|
|
"${ENGINE_SOURCE_DIR}/public/icvar.h"
|
|
)
|
|
|
|
end_sources()
|
|
|
|
target_compile_definitions( ${PROJECT_NAME} PRIVATE "MEM_DEBUG_CLASSNAME" )
|
|
target_include_directories( ${PROJECT_NAME} PRIVATE "${ENGINE_SOURCE_DIR}/tier0/" )
|