Skip to content

Commit

Permalink
Adding a configurable string to set the Universal include library to …
Browse files Browse the repository at this point in the history
…be used
  • Loading branch information
Ravenwater committed Jul 8, 2024
1 parent ddf5e9b commit 7281bd9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ option(STARTER_USE_FOLDERS "Enable solution folders in Visual Studio, disable fo
if (STARTER_USE_FOLDERS)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
endif()
set(STARTER_UNIVERSAL_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/ext/stillwater-sc/universal/include" CACHE PATH "Directory path to the include directoryof the desired Universal library")

####
# macro to read all cpp files in a directory
Expand Down
2 changes: 1 addition & 1 deletion src/apps/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set(app_name example)
project(${app_name} CXX)

# Universal is a C++ header-only library, so we do not need to build anything
include_directories(${STARTER_ROOT_DIR}/ext/stillwater-sc/universal/include)
include_directories(${STARTER_UNIVERSAL_INCLUDE_DIR})

# source files that make up the command
set(SOURCE_FILES
Expand Down
2 changes: 1 addition & 1 deletion test/example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
file (GLOB SRCS "./*.cpp")

# Universal is a C++ header-only library, so we do not need to build anything
include_directories(${STARTER_ROOT_DIR}/ext/stillwater-sc/universal/include)
include_directories(${STARTER_UNIVERSAL_INCLUDE_DIR})

# create a ctest target for every individual cpp file in this directory
compile_all("true" "testprefix" "Tests/example" "${SRCS}")

0 comments on commit 7281bd9

Please sign in to comment.