Skip to content

Commit

Permalink
Added threads to link to
Browse files Browse the repository at this point in the history
  • Loading branch information
berndporr committed Feb 19, 2024
1 parent ff2038b commit 4ad6990
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ add_compile_options(-Wall -Wconversion -Wextra -pedantic)
include(GNUInstallDirs)
enable_testing()

find_package (Threads)

add_library(cpptimer INTERFACE)

add_executable(demo demo.cpp)
TARGET_LINK_LIBRARIES(demo cpptimer)
TARGET_LINK_LIBRARIES(demo cpptimer ${CMAKE_THREAD_LIBS_INIT})

add_executable(demo_runnable demo_runnable.cpp)
TARGET_LINK_LIBRARIES(demo_runnable cpptimer)
TARGET_LINK_LIBRARIES(demo_runnable cpptimer${CMAKE_THREAD_LIBS_INIT})

add_subdirectory(test)

Expand Down

0 comments on commit 4ad6990

Please sign in to comment.