Skip to content

Commit

Permalink
Build fixes on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ehntoo committed Sep 11, 2022
1 parent 98dbbe8 commit 36c9d06
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ include(FindOpenMP)
find_package(glfw3 3.2 REQUIRED)

# Use the local FindVulkan script until we can rely on all users having CMake 3.24 available, at which point we can remove it
set(Vulkan_FIND_COMPONENTS glslang shaderc_combined)
include(FindVulkan)

if(NOT Vulkan_FOUND)
Expand Down
3 changes: 2 additions & 1 deletion src/ngscopeclient/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/../imgui/misc/cpp
${CMAKE_CURRENT_SOURCE_DIR}/../implot/
)
link_directories(${SIGCXX_LIBRARY_DIRS})
link_directories(${GTKMM_LIBRARY_DIRS} ${SIGCXX_LIBRARY_DIRS})
find_package(glfw3 REQUIRED)

###############################################################################
#C++ compilation
Expand Down
3 changes: 2 additions & 1 deletion tests/Acceleration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ add_executable(Acceleration
catch_discover_tests(Acceleration)

include_directories(${GTKMM_INCLUDE_DIRS} ${SIGCXX_INCLUDE_DIRS})
target_link_directories(Acceleration PUBLIC ${GTKMM_LIBRARY_DIRS} ${SIGCXX_LIBRARY_DIRS})

###############################################################################
#Linker settings
target_link_libraries(Acceleration
scopehal
scopeprotocols
yaml-cpp
${YAML_LIBRARIES}
Catch2::Catch2
)
3 changes: 2 additions & 1 deletion tests/Filters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ add_executable(Filters
catch_discover_tests(Filters)

include_directories(${GTKMM_INCLUDE_DIRS} ${SIGCXX_INCLUDE_DIRS})
target_link_directories(Filters PUBLIC ${GTKMM_LIBRARY_DIRS} ${SIGCXX_LIBRARY_DIRS})

###############################################################################
#Linker settings
target_link_libraries(Filters
scopehal
scopeprotocols
yaml-cpp
${YAML_LIBRARIES}
Catch2::Catch2
)
3 changes: 2 additions & 1 deletion tests/Primitives/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ add_executable(Primitives
catch_discover_tests(Primitives)

include_directories(${GTKMM_INCLUDE_DIRS} ${SIGCXX_INCLUDE_DIRS})
target_link_directories(Primitives PUBLIC ${GTKMM_LIBRARY_DIRS} ${SIGCXX_LIBRARY_DIRS})

###############################################################################
#Linker settings
target_link_libraries(Primitives
scopehal
scopeprotocols
yaml-cpp
${YAML_LIBRARIES}
Catch2::Catch2
)

0 comments on commit 36c9d06

Please sign in to comment.