18 lines
417 B
CMake
18 lines
417 B
CMake
cmake_minimum_required(VERSION 3.24)
|
|
project(leetcode)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(APP_LIB_NAME leetcode)
|
|
|
|
include_directories(include)
|
|
|
|
file(GLOB_RECURSE SOURCES "src/*/*.cpp")
|
|
add_library(${APP_LIB_NAME} ${SOURCES})
|
|
|
|
include(cmake/googletest.cmake)
|
|
#option(WITH_PROFILE OFF)
|
|
#if (${WITH_PROFILE})
|
|
# add_definitions(-DENABLE_PROFILING)
|
|
# include(cmake/gperftools.cmake)
|
|
#endif ()
|
|
include(cmake/tests.cmake) |