Skip to content

Allow Ch18 DPC++ book code samples to compile #1467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 28 additions & 28 deletions Publications/DPC++/Ch18_using_libs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
# Copyright (C) 2020 Intel Corporation

# SPDX-License-Identifier: MIT
# cmake_minimum_required(VERSION 3.4 )
# project(Chap18 CXX)
# add_book_sample(
# TEST
# TARGET fig_18_1_builtin
# SOURCES fig_18_1_builtin.cpp)
cmake_minimum_required(VERSION 3.4 )
project(Chap18 CXX)
add_book_sample(
TEST
TARGET fig_18_1_builtin
SOURCES fig_18_1_builtin.cpp)

# add_book_sample(
# TEST
# TARGET fig_18_7_swap
# SOURCES fig_18_7_swap.cpp)
add_book_sample(
TEST
TARGET fig_18_7_swap
SOURCES fig_18_7_swap.cpp)

# if(NOT NODPL)
# add_book_sample(
# TEST
# TARGET fig_18_11_std_fill
# SOURCES fig_18_11_std_fill.cpp)
# endif()
if(NOT NODPL)
add_book_sample(
TEST
TARGET fig_18_11_std_fill
SOURCES fig_18_11_std_fill.cpp)
endif()

# if(NOT NODPL)
# add_book_sample(
# TEST
# TARGET fig_18_13_binary_search
# SOURCES fig_18_13_binary_search.cpp)
# endif()
if(NOT NODPL)
add_book_sample(
TEST
TARGET fig_18_13_binary_search
SOURCES fig_18_13_binary_search.cpp)
endif()

# if(NOT NODPL)
# add_book_sample(
# TEST
# TARGET fig_18_15_pstl_usm
# SOURCES fig_18_15_pstl_usm.cpp)
# endif()
if(NOT NODPL)
add_book_sample(
TEST
TARGET fig_18_15_pstl_usm
SOURCES fig_18_15_pstl_usm.cpp)
endif()