Set runtime directories for projects

Adjust the runtime directories, so they are identical to pre-cmake port.
This commit is contained in:
Kawe Mazidjatari 2023-05-14 01:27:51 +02:00
parent ede19e0472
commit b57eb0c0c3
4 changed files with 9 additions and 12 deletions

View File

@ -63,6 +63,8 @@ target_link_libraries( ${PROJECT_NAME} PRIVATE
"libcurl"
"libprotobuf"
"libspdlog"
"libdetour"
"navdebugutils"
"networksystem"
"pluginsystem"
@ -75,12 +77,6 @@ target_link_libraries( ${PROJECT_NAME} PRIVATE
"vscript"
"game"
)
if( NOT ${PROJECT_NAME} STREQUAL "client" )
target_link_libraries( ${PROJECT_NAME} PRIVATE
"navdebugutils"
"libdetour"
)
endif()
if( NOT ${PROJECT_NAME} STREQUAL "dedicated" )
target_link_libraries( ${PROJECT_NAME} PRIVATE
@ -103,17 +99,18 @@ target_link_libraries( ${PROJECT_NAME} PRIVATE
)
endif()
end_sources()
if( ${PROJECT_NAME} STREQUAL "gamesdk" )
end_sources()
target_compile_definitions( ${PROJECT_NAME} PRIVATE
"GAMESDK"
)
elseif( ${PROJECT_NAME} STREQUAL "dedicated" )
end_sources()
target_compile_definitions( ${PROJECT_NAME} PRIVATE
"DEDICATED"
)
elseif( ${PROJECT_NAME} STREQUAL "client" )
end_sources( "game/bin/x64_retail/" )
target_compile_definitions( ${PROJECT_NAME} PRIVATE
"CLIENT_DLL"
)

View File

@ -85,7 +85,7 @@ add_sources( SOURCE_GROUP "Utils/Include"
"include/ValueHistory.h"
)
end_sources()
end_sources( "game/bin/" )
whole_program_optimization()
target_compile_definitions( ${PROJECT_NAME} PRIVATE

View File

@ -26,10 +26,10 @@ add_sources( SOURCE_GROUP "Engine"
add_sources( SOURCE_GROUP "Windows"
"${ENGINE_SOURCE_DIR}/windows/console.cpp"
"${ENGINE_SOURCE_DIR}/Windows/console.h"
"${ENGINE_SOURCE_DIR}/windows/console.h"
)
end_sources()
end_sources( "game/bin/" )
set_target_properties( ${PROJECT_NAME} PROPERTIES OUTPUT_NAME
"netcon32"

View File

@ -10,7 +10,7 @@ add_sources( SOURCE_GROUP "Core"
"pluginsdk.h"
)
end_sources()
end_sources( "game/bin/x64_retail/plugins/" )
target_link_libraries( ${PROJECT_NAME} PRIVATE
"tier0"