Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Add histogram #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
20 changes: 19 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,27 @@ set_target_properties(wavefront-sdk PROPERTIES VERSION ${PROJECT_VERSION})
# --[ Main
add_executable(main ${PROJECT_SOURCE_DIR}/src/main.cpp)
target_link_libraries(main PUBLIC wavefront-sdk)

set_target_properties(main PROPERTIES OUTPUT_NAME wavefront-sdk)

include(ExternalProject)
set(EXTERNAL_INSTALL_LOCATION ${CMAKE_BINARY_DIR}/external)

ExternalProject_Add(googletest
GIT_REPOSITORY https://github.com/google/googletest
GIT_TAG master
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION}
)

include_directories(${EXTERNAL_INSTALL_LOCATION}/include)
link_directories(${EXTERNAL_INSTALL_LOCATION}/lib)
enable_testing()

add_executable(HistogramTests ${PROJECT_SOURCE_DIR}/src/test/HistogramTest.cpp)
add_dependencies(HistogramTests googletest)
target_link_libraries(HistogramTests gtest gtest_main)
add_test(Test HistogramTests)


install(TARGETS wavefront-sdk EXPORT wavefront-sdk-targets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
Expand Down
Loading