mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
CMake compilation now works on Windows.
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
# Use libtins' include directories + test include directories
|
||||
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include/ ../include/)
|
||||
|
||||
# Find pthread library
|
||||
FIND_PACKAGE(Threads REQUIRED)
|
||||
|
||||
# Link against GoogleTest, libtins and pthread.
|
||||
# Pthread is required by GoogleTest
|
||||
LINK_LIBRARIES(${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARY} tins pthread)
|
||||
LINK_LIBRARIES(
|
||||
${GTEST_LIBRARIES}
|
||||
${GTEST_MAIN_LIBRARY}
|
||||
tins
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
)
|
||||
|
||||
# Add tests target
|
||||
ADD_CUSTOM_TARGET(
|
||||
|
||||
Reference in New Issue
Block a user