Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 50e87c6

Browse files
authored
Update CMakeLists.txt
1 parent f3ab2e5 commit 50e87c6

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
cmake_minimum_required(VERSION 3.30)
22
project(CodeGeneratorAPI LANGUAGES CXX)
33
file(GLOB SERVER_SOURCES "src/*.cpp")
4-
set(CMAKE_CXX_STANDARD 17)
5-
6-
include(FetchContent)
74

8-
FetchContent_Declare(
9-
zxing-cpp
10-
GIT_REPOSITORY https://github.com/zxing-cpp/zxing-cpp.git
11-
GIT_TAG master
12-
)
5+
set(CMAKE_CXX_STANDARD 17)
6+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
137

14-
FetchContent_MakeAvailable(zxing-cpp)
8+
find_package(ZXing REQUIRED)
159

1610
add_executable(server ${SERVER_SOURCES})
17-
target_link_libraries(server PRIVATE ZXing::ZXing)
11+
target_link_libraries(server PRIVATE ZXing::ZXing)
12+
target_include_directories(server PRIVATE include)

0 commit comments

Comments
 (0)