2021-08-08 14:16:30 +02:00
|
|
|
project(chatterino-benchmark)
|
|
|
|
|
|
|
|
set(benchmark_SOURCES
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/src/main.cpp
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/src/Emojis.cpp
|
2022-06-05 17:40:57 +02:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/src/Highlights.cpp
|
2022-05-29 13:54:42 +02:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/src/FormatTime.cpp
|
2022-06-17 20:52:20 +02:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/src/Helpers.cpp
|
2022-06-18 12:44:48 +02:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/src/LimitedQueue.cpp
|
2023-04-02 16:59:26 +02:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/src/LinkParser.cpp
|
2021-08-08 14:16:30 +02:00
|
|
|
# Add your new file above this line!
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME} ${benchmark_SOURCES})
|
|
|
|
add_sanitizers(${PROJECT_NAME})
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE chatterino-lib)
|
2023-05-20 12:54:50 +02:00
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE chatterino-mocks)
|
2021-08-08 14:16:30 +02:00
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE benchmark::benchmark)
|
|
|
|
|
|
|
|
set_target_properties(${PROJECT_NAME}
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_BINARY_DIR}/bin"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}/bin"
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${CMAKE_BINARY_DIR}/bin"
|
|
|
|
)
|