Mercurial > hg > orthanc
annotate OrthancCppClient/Package/Test/Basic/CMakeLists.txt @ 531:7f9467b5f33b laaw
samples
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 Jul 2013 17:16:15 +0200 |
parents | 1b8a1c43893e |
children |
rev | line source |
---|---|
512
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 cmake_minimum_required(VERSION 2.8) |
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 |
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 project(OrthancCppClientTest) |
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 |
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../../..) |
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 include(../../OrthancCppClient.cmake) |
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 |
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 add_executable(Test main.cpp) |
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 |
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") |
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 target_link_libraries(Test dl) |
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 else() |
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++") |
1b8a1c43893e
compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 endif() |