generated from tachyon-computer/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (29 loc) · 969 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
project(Zeta VERSION 0.1.0 LANGUAGES CXX)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
include(MessageColors)
include(LoggingHelper)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build/bin)
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build/lib)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(CommonProjectOptions)
include(CompilerWarnings)
include(CompilerSanitizers)
include(CodeCoverage)
include(ClangTidy)
include(ClangFormat)
include(CTags)
add_subdirectory(extern)
add_subdirectory(src)
if(BUILD_TESTING AND TACHYON_OPTIONS_BUILD_TESTING)
enable_testing()
add_subdirectory(tests)
endif()
set(CPACK_GENERATOR "TGZ")
set(CPACK_PACKAGE_VENDOR "Tachyon Computer")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Compiler for the Zeta language")
set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "1")
set(CPACK_PACKAGE_VERSION_PATCH "0")
include(CPack)