1
0
Fork 0
mirror of https://gitlab.com/niansa/anyproc.git synced 2025-03-06 20:49:24 +01:00

Improved cache variable descriptions

This commit is contained in:
niansa 2023-05-04 19:49:18 +02:00
parent a184fef764
commit 3d3de6ae87

View file

@ -5,8 +5,9 @@ project(anyproc LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(ANYPROC_PYBIND No CACHE BOOL "If python bindings should be build")
set(ANYPROC_COSCHED No CACHE BOOL "If CoSched should be made use of")
set(ANYPROC_PYBIND No CACHE BOOL "If Anyproc Python bindings should be build")
set(ANYPROC_COSCHED No CACHE BOOL "If Anyproc should make use of CoSched")
set(ANYPROC_EXAMPLES Yes CACHE BOOL "If Anyproc examples should be built")
if (ANYPROC_COSCHED)
set(CMAKE_CXX_STANDARD 20)
@ -16,11 +17,13 @@ add_library(anyproc INTERFACE)
target_include_directories(anyproc INTERFACE include/)
target_link_libraries(anyproc INTERFACE libjustlm)
add_executable(dictionary dictionary.cpp)
target_link_libraries(dictionary PUBLIC anyproc)
if (ANYPROC_EXAMPLES)
add_executable(dictionary dictionary.cpp)
target_link_libraries(dictionary PUBLIC anyproc)
add_executable(translator translator.cpp)
target_link_libraries(translator PUBLIC anyproc)
add_executable(translator translator.cpp)
target_link_libraries(translator PUBLIC anyproc)
endif()
if (ANYPROC_COSCHED)
target_link_libraries(anyproc INTERFACE cosched)