Warning, /system/qtcurve/lib/utils/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(qtcurve_utils_SRCS
0002 color.cpp
0003 dirs.cpp
0004 log.cpp
0005 utils.cpp
0006 strs.cpp
0007 shadow.cpp
0008 timer.cpp
0009 options.cpp
0010 fd_utils.cpp
0011 process.cpp
0012 # DO NOT condition on QTC_ENABLE_X11 !!!
0013 # These provides dummy API functions so that x and non-x version are abi
0014 # compatible. There's no X11 linkage when QTC_ENABLE_X11 is off even though
0015 # these files are compiled
0016 x11utils.cpp
0017 x11helpers.cpp
0018 x11wrap.cpp)
0019
0020 set(qtcurve_utils_LINKS ${LIBEXECINFO_LIBRARIES} pthread)
0021
0022 if(NOT APPLE)
0023 set(qtcurve_utils_LINKS ${qtcurve_utils_LINKS} m rt dl)
0024 endif()
0025
0026 include_directories("${CMAKE_CURRENT_BINARY_DIR}")
0027
0028 if(QTC_ENABLE_X11)
0029 set(qtcurve_utils_LINKS ${qtcurve_utils_LINKS} ${QTC_X11_LIBRARIES})
0030 endif()
0031
0032 add_definitions("-DQTC_UTILS_INTERNAL -pthread")
0033
0034 add_library(qtcurve-utils SHARED ${qtcurve_utils_SRCS}
0035 "${CMAKE_BINARY_DIR}/version.cpp")
0036 set_source_files_properties("${CMAKE_BINARY_DIR}/version.cpp"
0037 PROPERTIES GENERATED 1)
0038
0039 add_dependencies(qtcurve-utils gen-git-ver)
0040
0041 target_link_libraries(qtcurve-utils ${qtcurve_utils_LINKS})
0042
0043 set_target_properties(qtcurve-utils PROPERTIES
0044 VERSION 2.0
0045 SOVERSION 2
0046 COMPILE_FLAGS "-fvisibility=hidden"
0047 LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
0048 OUTPUT_NAME "qtcurve-utils${QTC_UTILSLIB_INFIX}")
0049 install(TARGETS qtcurve-utils LIBRARY
0050 DESTINATION "${LIB_INSTALL_DIR}")