Skip to content

Commit

Permalink
add variables.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
emrekovanci committed Apr 21, 2024
1 parent b7fc3b6 commit 56d10c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ project(
LANGUAGES CXX
)

include(cmake/Variables.cmake)

if(FEATURE_TESTS)
enable_testing()
find_package(Catch2 REQUIRED)
endif()

add_subdirectory(library)
add_subdirectory(app)

set(CPACK_PACKAGE_FILE_NAME
"${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_BUILD_TYPE}-${CMAKE_CXX_COMPILER_ID}-${CMAKE_CXX_COMPILER_VERSION}"
)
include(CPack)
5 changes: 5 additions & 0 deletions cmake/Variables.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# ---- Developer mode ----

if(PROJECT_IS_TOP_LEVEL)
option(BUILD_SHARED_LIBS "Build shared libs." OFF)
endif()

0 comments on commit 56d10c1

Please sign in to comment.