diff --git a/.gitignore b/.gitignore index fa03b281..3ba1bb16 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,4 @@ .vs -*.opendb -*.db -*.vcxproj.user -x64 -Release -Debug _build _compiler tools/* @@ -36,7 +30,6 @@ profiler/build/win32/Tracy.aps extra/vswhere.exe extra/tracy-build .cache -build compile_commands.json profiler/build/wasm/Tracy-release.* profiler/build/wasm/Tracy-debug.* diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ba5dc29..358266c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,8 @@ include(cmake/version.cmake) project(Tracy LANGUAGES CXX VERSION ${TRACY_VERSION_STRING}) +file(GENERATE OUTPUT .gitignore CONTENT "*") + if(${BUILD_SHARED_LIBS}) set(DEFAULT_STATIC OFF) else() diff --git a/cmake/config.cmake b/cmake/config.cmake index cff24a58..d32ee9f1 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -52,3 +52,5 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-eliminate-unused-debug-types") endif() endif() + +file(GENERATE OUTPUT .gitignore CONTENT "*") diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b94f537f..98f1386a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -12,6 +12,8 @@ project( LANGUAGES C CXX VERSION ${TRACY_VERSION_STRING}) +file(GENERATE OUTPUT .gitignore CONTENT "*") + # a bit weird but works: include the client cmake config coming from top-level # cmake needs us to specify the build subfolder -> client/ this way we can # simply link the test executable against TracyClient