Mercurial > hg > orthanc
comparison Resources/Samples/OrthancCppClientStandalone/Basic/CMakeLists.txt @ 531:7f9467b5f33b laaw
samples
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 Jul 2013 17:16:15 +0200 |
parents | |
children | a0001c222b32 |
comparison
equal
deleted
inserted
replaced
528:a65f808de5bd | 531:7f9467b5f33b |
---|---|
1 cmake_minimum_required(VERSION 2.8) | |
2 | |
3 project(Basic) | |
4 | |
5 add_executable(Test main.cpp) | |
6 | |
7 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") | |
8 # Linking with "pthread" is necessary, otherwise the software crashes | |
9 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17 | |
10 target_link_libraries(Test pthread dl) | |
11 else() | |
12 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++") | |
13 endif() |