orderly/CMakeLists.txt
2020-04-01 10:26:05 +08:00

28 lines
574 B
CMake

cmake_minimum_required(VERSION 3.0.0)
project(orderly VERSION 0.1.0)
SET(CMAKE_BUILD_TYPE "Debug")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
# include(CTest)
# enable_testing()
include_directories(
${CMAKE_CURRENT_LIST_DIR}/src
/usr/include
/usr/local/include
)
link_directories(
/usr/lib/
/usr/local/lib/
)
add_subdirectory(gtest)
add_executable(orderly src/main.cpp)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)