From 552b962505fc53e838ff28c4e696b9501ebfe5d9 Mon Sep 17 00:00:00 2001 From: duongtd Date: Tue, 2 Dec 2025 10:42:39 +0700 Subject: [PATCH] fix file cmake --- .gitignore | 2 ++ CMakeLists.txt | 1 + 2 files changed, 3 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..917166f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Bỏ qua thư mục build/ +build/ diff --git a/CMakeLists.txt b/CMakeLists.txt index 66c7d2e..8be9313 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ project(robot_time LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) find_package(GTest REQUIRED)