Lines Matching +full:cmake +full:- +full:3
6 add_library(civetweb-c-library ${LIB_TYPE} civetweb.c)
7 set_target_properties(civetweb-c-library PROPERTIES
14 …target_compile_definitions(civetweb-c-library PRIVATE CIVETWEB_DLL_EXPORTS INTERFACE CIVETWEB_DLL_…
17 civetweb-c-library PUBLIC
20 TARGETS civetweb-c-library
21 EXPORT ${PROJECT_NAME}-targets
25 COMPONENT civetweb-c-library
30 COMPONENT civetweb-c-library)
35 target_link_libraries(civetweb-c-library WINSOCK::WINSOCK)
40 target_link_libraries(civetweb-c-library ${CMAKE_THREAD_LIBS_INIT})
45 target_link_libraries(civetweb-c-library LIBRT::LIBRT)
53 target_link_libraries(civetweb-c-library -ldl)
59 target_link_libraries(civetweb-c-library ${OPENSSL_LIBRARIES})
91 set(LUA_BUILD_COMMAND "${LUA_BUILD_COMMAND};MYCFLAGS=-fPIC")
94 URL "http://www.lua.org/ftp/lua-${CIVETWEB_LUA_VERSION}.tar.gz"
113 add_dependencies(civetweb-c-library lua)
124 PATCH_COMMAND ${CMAKE_COMMAND} -E copy
125 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/luafilesystem/CMakeLists.txt" <SOURCE_DIR>/CMakeLists.txt
127 "-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}"
128 "-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>"
141 add_dependencies(civetweb-c-library luafilesystem)
144 if (${CIVETWEB_LUA_SQLITE_VERSION} VERSION_EQUAL "0.9.3")
157 PATCH_COMMAND ${CMAKE_COMMAND} -E copy
158 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/luasqlite/CMakeLists.txt" <SOURCE_DIR>/CMakeLists.txt
160 "-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}"
161 "-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>"
173 add_dependencies(civetweb-c-library luasqlite)
197 # TODO: fix this patch command (needs someone with deeper CMake know how)
198 PATCH_COMMAND ${CMAKE_COMMAND} -E copy
199 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/luaxml/CMakeLists.txt" <SOURCE_DIR>/CMakeLists.txt
201 "-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}"
202 "-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>"
214 add_dependencies(civetweb-c-library luaxml)
217 string (REGEX MATCHALL "[0-9]+" SQLITE_VERSION_MATCHES ${CIVETWEB_SQLITE_VERSION})
223 URL "http://www.sqlite.org/2015/sqlite-amalgamation-${SQLITE_FILE_VERSION}.zip"
226 PATCH_COMMAND ${CMAKE_COMMAND} -E copy
227 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/sqlite/CMakeLists.txt" <SOURCE_DIR>/CMakeLists.txt
229 "-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}"
230 "-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>"
243 add_dependencies(civetweb-c-library sqlite)
246 target_link_libraries(civetweb-c-library ${LUA_LIBRARIES})
251 add_executable(civetweb-c-executable main.c)
252 set_target_properties(civetweb-c-executable PROPERTIES
258 TARGETS civetweb-c-executable
259 EXPORT ${PROJECT_NAME}-targets
266 civetweb-c-executable PUBLIC
268 target_link_libraries(civetweb-c-executable civetweb-c-library)
270 target_link_libraries(civetweb-c-executable LIBRT::LIBRT)
275 …add_library(lua-library third_party/lfs.c third_party/lsqlite3.c third_party/LuaXML_lib.c third_pa…
276 set_target_properties(lua-library PROPERTIES
277 OUTPUT_NAME "lua-library"
282 lua-library PUBLIC
283 $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/third_party/lua-5.2.4>)
285 TARGETS lua-library
286 EXPORT ${PROJECT_NAME}-targets
290 COMPONENT lua-library
296 add_library(civetweb-cpp ${LIB_TYPE} CivetServer.cpp)
297 set_target_properties(civetweb-cpp PROPERTIES
298 EXPORT_NAME "civetweb-cpp"
299 OUTPUT_NAME "civetweb-cpp"
304 …target_compile_definitions(civetweb-cpp PRIVATE CIVETWEB_CXX_DLL_EXPORTS INTERFACE CIVETWEB_CXX_DL…
307 civetweb-cpp PUBLIC
308 civetweb-c-library)
310 civetweb-cpp PUBLIC
313 TARGETS civetweb-cpp
314 EXPORT ${PROJECT_NAME}-targets
318 COMPONENT civetweb-cpp
323 COMPONENT civetweb-cpp)