mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 07:26:03 -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)
|
find_package (Qt4 COMPONENTS QtCore QtGui QtMain QtOpenGl REQUIRED)
|
||||||
include (${QT_USE_FILE})
|
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
|
#libraries
|
||||||
add_subdirectory (cafProjectDataModel/cafPdmCore)
|
add_subdirectory (cafProjectDataModel/cafPdmCore)
|
||||||
@ -19,6 +30,10 @@ add_subdirectory(cafUserInterface)
|
|||||||
#executables
|
#executables
|
||||||
add_subdirectory(cafTests/cafTestApplication)
|
add_subdirectory(cafTests/cafTestApplication)
|
||||||
|
|
||||||
|
if( UNIX )
|
||||||
|
set(THREAD_LIBRARY "pthread")
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory (cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests)
|
add_subdirectory (cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests)
|
||||||
add_subdirectory (cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests)
|
add_subdirectory (cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests)
|
||||||
add_subdirectory (cafProjectDataModel/cafProjectDataModel_UnitTests)
|
add_subdirectory (cafProjectDataModel/cafProjectDataModel_UnitTests)
|
||||||
|
@ -40,6 +40,7 @@ message(STATUS ${PROJECT_NAME}" - Qt includes : " ${QT_LIBRARIES})
|
|||||||
target_link_libraries ( ${PROJECT_NAME}
|
target_link_libraries ( ${PROJECT_NAME}
|
||||||
cafPdmCore
|
cafPdmCore
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
|
${THREAD_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ target_link_libraries ( ${PROJECT_NAME}
|
|||||||
cafPdmCore
|
cafPdmCore
|
||||||
cafPdmXml
|
cafPdmXml
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
|
${THREAD_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
# Copy Qt Dlls
|
# Copy Qt Dlls
|
||||||
|
@ -40,6 +40,7 @@ target_link_libraries ( ${PROJECT_NAME}
|
|||||||
cafPdmXml
|
cafPdmXml
|
||||||
cafProjectDataModel
|
cafProjectDataModel
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
|
${THREAD_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
source_group("" FILES ${PROJECT_FILES})
|
source_group("" FILES ${PROJECT_FILES})
|
||||||
|
Loading…
Reference in New Issue
Block a user