]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/CMakeLists.txt
Remove obsolete eye_height related workaround
[dragonfireclient.git] / src / CMakeLists.txt
index 03e48ddbd37c959f66b0939a2eba2dbcdfec128c..c068be575558a1186f6a5faeaf9efb8f7f9629e8 100644 (file)
@@ -136,6 +136,7 @@ if(ENABLE_POSTGRESQL)
                if(PostgreSQL_INCLUDE_DIR AND PostgreSQL_LIBRARY)
                        set(PostgreSQL_FOUND TRUE)
                        set(PostgreSQL_INCLUDE_DIRS ${PostgreSQL_INCLUDE_DIR})
+                       set(PostgreSQL_LIBRARIES ${PostgreSQL_LIBRARY})
                endif()
        else()
                find_package(PostgreSQL)
@@ -330,6 +331,7 @@ add_subdirectory(mapgen)
 add_subdirectory(network)
 add_subdirectory(script)
 add_subdirectory(unittest)
+add_subdirectory(benchmark)
 add_subdirectory(util)
 add_subdirectory(irrlicht_changes)
 add_subdirectory(server)
@@ -412,6 +414,9 @@ if(BUILD_UNITTESTS)
        set(common_SRCS ${common_SRCS} ${UNITTEST_SRCS})
 endif()
 
+if(BUILD_BENCHMARKS)
+       set(common_SRCS ${common_SRCS} ${BENCHMARK_SRCS})
+endif()
 
 # This gives us the icon and file version information
 if(WIN32)
@@ -452,6 +457,10 @@ if(BUILD_UNITTESTS)
        set(client_SRCS ${client_SRCS} ${UNITTEST_CLIENT_SRCS})
 endif()
 
+if(BUILD_BENCHMARKS)
+       set(client_SRCS ${client_SRCS} ${BENCHMARK_CLIENT_SRCS})
+endif()
+
 list(SORT client_SRCS)
 
 # Server sources
@@ -567,6 +576,9 @@ if(BUILD_CLIENT)
        if (USE_SPATIAL)
                target_link_libraries(${PROJECT_NAME} ${SPATIAL_LIBRARY})
        endif()
+       if(BUILD_BENCHMARKS)
+               target_link_libraries(${PROJECT_NAME} catch2)
+       endif()
 endif(BUILD_CLIENT)
 
 
@@ -626,6 +638,9 @@ if(BUILD_SERVER)
                        ${CURL_LIBRARY}
                )
        endif()
+       if(BUILD_BENCHMARKS)
+               target_link_libraries(${PROJECT_NAME}server catch2)
+       endif()
 endif(BUILD_SERVER)
 
 # Blacklisted locales that don't work.