Initial commit
This commit is contained in:
15
CMakeLists.txt
Normal file
15
CMakeLists.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
cmake_minimum_required(VERSION 3.30)
|
||||
|
||||
project(leetcode)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
|
||||
find_package(GTest REQUIRED)
|
||||
enable_testing()
|
||||
|
||||
file(GLOB sources main.cpp **/*.cpp)
|
||||
|
||||
add_executable(leetcode ${sources})
|
||||
target_link_libraries(leetcode GTest::gtest_main)
|
||||
|
||||
include(GoogleTest)
|
||||
gtest_discover_tests(leetcode)
|
||||
Reference in New Issue
Block a user