Mercurial > hg > orthanc
comparison Resources/CMake/Compiler.cmake @ 1335:4bed63189508
enhanced header lookup
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 30 Mar 2015 15:40:38 +0200 |
parents | 303eb5e09a4b |
children | a80e811ec619 |
comparison
equal
deleted
inserted
replaced
1334:7f0aa3c0f659 | 1335:4bed63189508 |
---|---|
59 # Remove the "-rdynamic" option | 59 # Remove the "-rdynamic" option |
60 # http://www.mail-archive.com/cmake@cmake.org/msg08837.html | 60 # http://www.mail-archive.com/cmake@cmake.org/msg08837.html |
61 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") | 61 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") |
62 link_libraries(uuid pthread rt dl) | 62 link_libraries(uuid pthread rt dl) |
63 | 63 |
64 find_path(LIBUUID_INCLUDE_DIR uuid.h | |
65 /usr/include | |
66 /usr/include/uuid | |
67 ) | |
68 message("libuuid include dir: ${LIBUUID_INCLUDE_DIR}") | |
69 include_directories(${LIBUUID_INCLUDE_DIR}) | |
70 | |
64 elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | 71 elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
65 add_definitions( | 72 add_definitions( |
66 -DWINVER=0x0501 | 73 -DWINVER=0x0501 |
67 -D_CRT_SECURE_NO_WARNINGS=1 | 74 -D_CRT_SECURE_NO_WARNINGS=1 |
68 ) | 75 ) |
83 | 90 |
84 | 91 |
85 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | 92 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
86 CHECK_INCLUDE_FILES(rpc.h HAVE_UUID_H) | 93 CHECK_INCLUDE_FILES(rpc.h HAVE_UUID_H) |
87 else() | 94 else() |
88 CHECK_INCLUDE_FILES(uuid/uuid.h HAVE_UUID_H) | 95 CHECK_INCLUDE_FILES(uuid.h HAVE_UUID_H) |
89 endif() | 96 endif() |
90 | 97 |
91 if (NOT HAVE_UUID_H) | 98 if (NOT HAVE_UUID_H) |
92 message(FATAL_ERROR "Please install the uuid-dev package") | 99 message(FATAL_ERROR "Please install the uuid-dev package") |
93 endif() | 100 endif() |