Fixed windows deadlocks, performance is shit tho
This commit is contained in:
@@ -5,6 +5,13 @@ set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
# Optional: Enable function timing instrumentation via #define
|
||||
# To enable timing, either:
|
||||
# 1. Define SWEEPSTORE_ENABLE_TIMING=1 in your code before including timing.h
|
||||
# 2. Pass -DSWEEPSTORE_ENABLE_TIMING=1 to compiler
|
||||
# 3. Uncomment the line below:
|
||||
add_compile_definitions(SWEEPSTORE_ENABLE_TIMING=1)
|
||||
|
||||
# Add include directories globally
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src/Public)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src/Private)
|
||||
@@ -25,6 +32,8 @@ add_executable(main
|
||||
src/Public/sweepstore/utils/file_handle.h
|
||||
src/Private/sweepstore/utils/file_handle.cpp
|
||||
src/Public/sweepstore/header.h
|
||||
src/Public/sweepstore/utils/timing.h
|
||||
src/Private/sweepstore/utils/timing.cpp
|
||||
src/Private/sweepstore/benchmark.cpp
|
||||
)
|
||||
|
||||
@@ -43,3 +52,7 @@ if(UNIX AND NOT APPLE)
|
||||
# Only link stdc++fs on Linux, not macOS
|
||||
target_link_libraries(main PRIVATE stdc++fs)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(main PRIVATE winmm)
|
||||
endif()
|
||||
Reference in New Issue
Block a user