Skip to content

Commit cbd1dd0

Browse files
committed
update CMakeLists.txt
1 parent 13de832 commit cbd1dd0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CMakeLists.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.0.0)
1+
cmake_minimum_required(VERSION 3.16.0)
22
project(zcrypto VERSION 0.1.0)
33

44
include(CTest)
@@ -7,7 +7,7 @@ enable_testing()
77
set(CMAKE_C_STANDARD 17)
88
set(CMAKE_CXX_STANDARD 17)
99

10-
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
10+
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
1111

1212
# add_compile_options(/Wall /WX)
1313
add_compile_options(/bigobj /utf-8)
@@ -16,14 +16,13 @@ if (${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
1616

1717
else ()
1818

19-
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
19+
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
2020
add_compile_options (-fdiagnostics-color=always)
21-
elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
21+
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
2222
add_compile_options (-fcolor-diagnostics)
2323
endif ()
2424

2525
endif()
2626

27-
include_directories(include)
2827
add_subdirectory(src)
2928
add_subdirectory(tests)

src/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ set(sources
1414
)
1515

1616
add_library(zcrypto STATIC ${sources})
17+
target_include_directories(zcrypto PUBLIC ${PROJECT_SOURCE_DIR}/include)

0 commit comments

Comments
 (0)