1
0
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:
Matias Fontanini
2014-08-24 18:06:58 -03:00
parent 443974335a
commit f5b0603799
7 changed files with 62 additions and 19 deletions

View File

@@ -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(