orderly/CMakeLists.txt

28 lines
570 B
CMake
Raw Normal View History

2020-03-31 15:52:46 +00:00
cmake_minimum_required(VERSION 3.5.0)
project(orderly VERSION 0.1.0)
2020-03-31 16:22:51 +00:00
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")
2020-03-31 15:52:46 +00:00
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)