always set cmake $CONF_DIR and add in preprocessor defines

This commit is contained in:
Yehonal
2016-08-11 17:05:52 +02:00
parent 34d4accb5b
commit 4330b759b7
5 changed files with 14 additions and 5 deletions

View File

@@ -98,12 +98,12 @@ endif()
if( UNIX )
install(TARGETS authserver DESTINATION bin)
install(FILES authserver.conf.dist DESTINATION ${CONF_DIR})
elseif( WIN32 )
install(TARGETS authserver DESTINATION "${CMAKE_INSTALL_PREFIX}")
install(FILES authserver.conf.dist DESTINATION "${CMAKE_INSTALL_PREFIX}")
endif()
install(FILES authserver.conf.dist DESTINATION ${CONF_DIR})
# Generate precompiled header
if (USE_COREPCH)
add_cxx_pch(authserver ${authserver_PCH_HDR} ${authserver_PCH_SRC})