Skip to content

Commit

Permalink
Merge pull request #137 from ctabin/cmake-options
Browse files Browse the repository at this point in the history
Defines CMake options for Debug/Release compilation
  • Loading branch information
ctabin authored May 23, 2022
2 parents ec64bbd + 615491c commit d1db539
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ else()
set(is_root_project OFF)
endif()

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

set(CMAKE_CXX_FLAGS "-W -Wall -Wextra -ansi -pedantic -std=c++11")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")

option(LIBZIPPP_INSTALL "Install library" ${is_root_project})
option(LIBZIPPP_INSTALL_HEADERS "Install the headers" ${is_root_project})
option(LIBZIPPP_BUILD_TESTS "Build unit tests" ${is_root_project})
Expand Down

0 comments on commit d1db539

Please sign in to comment.