mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
System - Add pthread to unit test link parameters
This commit is contained in:
parent
ac3abc78da
commit
3bbc1c9885
@ -6,6 +6,17 @@ project (CeeApp)
|
||||
find_package (Qt4 COMPONENTS QtCore QtGui QtMain QtOpenGl REQUIRED)
|
||||
include (${QT_USE_FILE})
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
set(CMAKE_CXX_FLAGS "-std=c++0x")
|
||||
endif()
|
||||
|
||||
# Improvement Cmake 3.x
|
||||
# If we have compiler requirements for this library, list them
|
||||
#target_compile_features(lib
|
||||
# PUBLIC cxx_auto_type
|
||||
# PRIVATE cxx_variadic_templates)
|
||||
|
||||
|
||||
|
||||
#libraries
|
||||
add_subdirectory (cafProjectDataModel/cafPdmCore)
|
||||
@ -19,6 +30,10 @@ add_subdirectory(cafUserInterface)
|
||||
#executables
|
||||
add_subdirectory(cafTests/cafTestApplication)
|
||||
|
||||
if( UNIX )
|
||||
set(THREAD_LIBRARY "pthread")
|
||||
endif()
|
||||
|
||||
add_subdirectory (cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests)
|
||||
add_subdirectory (cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests)
|
||||
add_subdirectory (cafProjectDataModel/cafProjectDataModel_UnitTests)
|
||||
|
@ -40,6 +40,7 @@ message(STATUS ${PROJECT_NAME}" - Qt includes : " ${QT_LIBRARIES})
|
||||
target_link_libraries ( ${PROJECT_NAME}
|
||||
cafPdmCore
|
||||
${QT_LIBRARIES}
|
||||
${THREAD_LIBRARY}
|
||||
)
|
||||
|
||||
|
||||
|
@ -26,6 +26,7 @@ target_link_libraries ( ${PROJECT_NAME}
|
||||
cafPdmCore
|
||||
cafPdmXml
|
||||
${QT_LIBRARIES}
|
||||
${THREAD_LIBRARY}
|
||||
)
|
||||
|
||||
# Copy Qt Dlls
|
||||
|
@ -40,6 +40,7 @@ target_link_libraries ( ${PROJECT_NAME}
|
||||
cafPdmXml
|
||||
cafProjectDataModel
|
||||
${QT_LIBRARIES}
|
||||
${THREAD_LIBRARY}
|
||||
)
|
||||
|
||||
source_group("" FILES ${PROJECT_FILES})
|
||||
|
Loading…
Reference in New Issue
Block a user