Skip to content

Commit

Permalink
Merge pull request #7 from Ivarun/build_fixes
Browse files Browse the repository at this point in the history
Build fixes
  • Loading branch information
Alf Birger Rustad committed Sep 1, 2012
2 parents a5a1dc3 + 94d00b4 commit 1ef0229
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions ApplicationCode/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
${CMAKE_CURRENT_SOURCE_DIR}/../ThirdParty/Ert/geometry/lib/libgeometry.a
${CMAKE_CURRENT_SOURCE_DIR}/../ThirdParty/Ert/well/lib/libwell.a
lapack
z # In case libz is not included in libQtCore
)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set ( EXTERNAL_LINK_LIBRARIES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
${CMAKE_CURRENT_SOURCE_DIR}/../../../ThirdParty/Ert/geometry/lib/libgeometry.a
${CMAKE_CURRENT_SOURCE_DIR}/../../../ThirdParty/Ert/well/lib/libwell.a
lapack
pthread
z # In case libz is not included in libQtCore
)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set ( EXTERNAL_LINK_LIBRARIES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ add_executable( ${ProjectName}
)


target_link_libraries( ${ProjectName} ${LINK_LIBRARIES})
set( EXTERNAL_LINK_LIBRARIES
pthread
)


target_link_libraries( ${ProjectName} ${LINK_LIBRARIES} ${EXTERNAL_LINK_LIBRARIES})


Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
${CMAKE_CURRENT_SOURCE_DIR}/../../../ThirdParty/Ert/util/lib/libutil.a
${CMAKE_CURRENT_SOURCE_DIR}/../../../ThirdParty/Ert/well/lib/libwell.a
lapack
pthread
)

# Linux specific code
Expand Down
10 changes: 10 additions & 0 deletions VisualizationModules/LibCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,13 @@ cvfVector4.cpp

add_library(${PROJECT_NAME} ${CEE_HEADER_FILES} ${CEE_SOURCE_FILES})


if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set ( EXTERNAL_LINK_LIBRARIES
rt
)
endif()


target_link_libraries(LibCore ${EXTERNAL_LINK_LIBRARIES})

0 comments on commit 1ef0229

Please sign in to comment.