Mercurial > hg > orthanc
comparison CMakeLists.txt @ 407:2d269089078f
reintegration of lua scripting into mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 02 May 2013 16:49:28 +0200 |
parents | 9aa8ecbeeeb9 7dec4f3c922c |
children | 1188cb0ddaa5 |
comparison
equal
deleted
inserted
replaced
406:fb1d988a978b | 407:2d269089078f |
---|---|
17 SET(USE_DYNAMIC_JSONCPP OFF CACHE BOOL "Use the dynamic version of JsonCpp (only for Debian sid)") | 17 SET(USE_DYNAMIC_JSONCPP OFF CACHE BOOL "Use the dynamic version of JsonCpp (only for Debian sid)") |
18 SET(USE_DYNAMIC_GOOGLE_LOG ON CACHE BOOL "Use the dynamic version of Google Log") | 18 SET(USE_DYNAMIC_GOOGLE_LOG ON CACHE BOOL "Use the dynamic version of Google Log") |
19 SET(USE_DYNAMIC_GOOGLE_TEST ON CACHE BOOL "Use the dynamic version of Google Test (not for Debian sid)") | 19 SET(USE_DYNAMIC_GOOGLE_TEST ON CACHE BOOL "Use the dynamic version of Google Test (not for Debian sid)") |
20 SET(USE_DYNAMIC_SQLITE ON CACHE BOOL "Use the dynamic version of SQLite") | 20 SET(USE_DYNAMIC_SQLITE ON CACHE BOOL "Use the dynamic version of SQLite") |
21 SET(USE_DYNAMIC_MONGOOSE OFF CACHE BOOL "Use the dynamic version of Mongoose") | 21 SET(USE_DYNAMIC_MONGOOSE OFF CACHE BOOL "Use the dynamic version of Mongoose") |
22 SET(USE_DYNAMIC_LUA OFF CACHE BOOL "Use the dynamic version of Lua") | |
22 SET(DEBIAN_FORCE_HARDENING OFF CACHE BOOL "Force the injection of Debian hardening flags (unrecommended)") | 23 SET(DEBIAN_FORCE_HARDENING OFF CACHE BOOL "Force the injection of Debian hardening flags (unrecommended)") |
23 SET(DEBIAN_USE_GTEST_SOURCE_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (only for Debian sid)") | 24 SET(DEBIAN_USE_GTEST_SOURCE_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (only for Debian sid)") |
24 SET(ONLY_CORE_LIBRARY OFF CACHE BOOL "Only build the core library") | 25 SET(ONLY_CORE_LIBRARY OFF CACHE BOOL "Only build the core library") |
25 | 26 |
26 mark_as_advanced(USE_DYNAMIC_JSONCPP) | 27 mark_as_advanced(USE_DYNAMIC_JSONCPP) |
71 include(${CMAKE_SOURCE_DIR}/Resources/CMake/ZlibConfiguration.cmake) | 72 include(${CMAKE_SOURCE_DIR}/Resources/CMake/ZlibConfiguration.cmake) |
72 include(${CMAKE_SOURCE_DIR}/Resources/CMake/SQLiteConfiguration.cmake) | 73 include(${CMAKE_SOURCE_DIR}/Resources/CMake/SQLiteConfiguration.cmake) |
73 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JsonCppConfiguration.cmake) | 74 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JsonCppConfiguration.cmake) |
74 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibCurlConfiguration.cmake) | 75 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibCurlConfiguration.cmake) |
75 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibPngConfiguration.cmake) | 76 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibPngConfiguration.cmake) |
77 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LuaConfiguration.cmake) | |
76 | 78 |
77 | 79 |
78 # Prepare the embedded files | 80 # Prepare the embedded files |
79 set(EMBEDDED_FILES | 81 set(EMBEDDED_FILES |
80 PREPARE_DATABASE ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/PrepareDatabase.sql | 82 PREPARE_DATABASE ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/PrepareDatabase.sql |
81 CONFIGURATION_SAMPLE ${CMAKE_CURRENT_SOURCE_DIR}/Resources/Configuration.json | 83 CONFIGURATION_SAMPLE ${CMAKE_CURRENT_SOURCE_DIR}/Resources/Configuration.json |
84 LUA_TOOLBOX ${CMAKE_CURRENT_SOURCE_DIR}/Resources/Toolbox.lua | |
82 ) | 85 ) |
83 | 86 |
84 if (${STANDALONE_BUILD}) | 87 if (${STANDALONE_BUILD}) |
85 # We embed all the resources in the binaries for standalone builds | 88 # We embed all the resources in the binaries for standalone builds |
86 add_definitions(-DORTHANC_STANDALONE=1) | 89 add_definitions(-DORTHANC_STANDALONE=1) |
141 Core/SQLite/StatementId.cpp | 144 Core/SQLite/StatementId.cpp |
142 Core/SQLite/StatementReference.cpp | 145 Core/SQLite/StatementReference.cpp |
143 Core/SQLite/Transaction.cpp | 146 Core/SQLite/Transaction.cpp |
144 Core/Toolbox.cpp | 147 Core/Toolbox.cpp |
145 Core/Uuid.cpp | 148 Core/Uuid.cpp |
149 Core/Lua/LuaContext.cpp | |
150 Core/Lua/LuaFunctionCall.cpp | |
146 | 151 |
147 OrthancCppClient/HttpClient.cpp | 152 OrthancCppClient/HttpClient.cpp |
148 OrthancCppClient/HttpException.cpp | 153 OrthancCppClient/HttpException.cpp |
149 ) | 154 ) |
150 | 155 |
199 UnitTests/SQLite.cpp | 204 UnitTests/SQLite.cpp |
200 UnitTests/SQLiteChromium.cpp | 205 UnitTests/SQLiteChromium.cpp |
201 UnitTests/ServerIndex.cpp | 206 UnitTests/ServerIndex.cpp |
202 UnitTests/Versions.cpp | 207 UnitTests/Versions.cpp |
203 UnitTests/Zip.cpp | 208 UnitTests/Zip.cpp |
209 UnitTests/Lua.cpp | |
204 UnitTests/main.cpp | 210 UnitTests/main.cpp |
205 ) | 211 ) |
206 target_link_libraries(UnitTests ServerLibrary CoreLibrary) | 212 target_link_libraries(UnitTests ServerLibrary CoreLibrary) |
207 endif() | 213 endif() |
208 endif() | 214 endif() |