Skip to content

Commit

Permalink
Add pthread linker flags when compiling the test binary
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Dec 20, 2020
1 parent 3a72019 commit d029960
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/CMakeLists.txt
Expand Up @@ -24,9 +24,13 @@ add_executable(drtest
Selection.cpp
VFS.cpp
WorldspawnColour.cpp)

find_package(Threads REQUIRED)

target_compile_options(drtest PUBLIC ${SIGC_CFLAGS})
target_link_libraries(drtest PUBLIC
math xmlutil scenegraph module
${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES}
${SIGC_LIBRARIES} ${GLEW_LIBRARIES} ${X11_LIBRARIES})
${SIGC_LIBRARIES} ${GLEW_LIBRARIES} ${X11_LIBRARIES}
PRIVATE Threads::Threads)
install(TARGETS drtest)

0 comments on commit d029960

Please sign in to comment.