File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.0 .0)
1
+ cmake_minimum_required (VERSION 3.16 .0)
2
2
project (zcrypto VERSION 0.1.0)
3
3
4
4
include (CTest)
@@ -7,7 +7,7 @@ enable_testing()
7
7
set (CMAKE_C_STANDARD 17)
8
8
set (CMAKE_CXX_STANDARD 17)
9
9
10
- if (${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC" )
10
+ if (" ${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
11
11
12
12
# add_compile_options(/Wall /WX)
13
13
add_compile_options (/bigobj /utf-8)
@@ -16,14 +16,13 @@ if (${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
16
16
17
17
else ()
18
18
19
- if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" )
19
+ if (" ${CMAKE_CXX_COMPILER_ID} " STREQUAL "GNU" )
20
20
add_compile_options (-fdiagnostics-color=always)
21
- elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" )
21
+ elseif (" ${CMAKE_CXX_COMPILER_ID} " STREQUAL "Clang" )
22
22
add_compile_options (-fcolor-diagnostics)
23
23
endif ()
24
24
25
25
endif ()
26
26
27
- include_directories (include )
28
27
add_subdirectory (src)
29
28
add_subdirectory (tests)
Original file line number Diff line number Diff line change @@ -14,3 +14,4 @@ set(sources
14
14
)
15
15
16
16
add_library (zcrypto STATIC ${sources} )
17
+ target_include_directories (zcrypto PUBLIC ${PROJECT_SOURCE_DIR} /include )
You can’t perform that action at this time.
0 commit comments