annotate Resources/Samples/OrthancClient/Basic/CMakeLists.txt @ 996:cf52f3bcb2b3 lua-scripting

clarification of Lua classes wrt multithreading
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 03 Jul 2014 16:27:16 +0200
parents 3237eea24487
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
531
7f9467b5f33b samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 cmake_minimum_required(VERSION 2.8)
7f9467b5f33b samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
7f9467b5f33b samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 project(Basic)
7f9467b5f33b samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4
7f9467b5f33b samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 add_executable(Test main.cpp)
7f9467b5f33b samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6
7f9467b5f33b samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
7f9467b5f33b samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 # Linking with "pthread" is necessary, otherwise the software crashes
7f9467b5f33b samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17
7f9467b5f33b samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 target_link_libraries(Test pthread dl)
7f9467b5f33b samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 endif()