Annotation of ChivanetAimPidgin/oscarprpl/CMakeLists.txt, revision 1.1

1.1     ! snw         1: cmake_minimum_required(VERSION 3.18) # see purple-config.cmake
        !             2: 
        !             3: project("oscarprpl")
        !             4: 
        !             5: # include purple-cmake config file path
        !             6: set(CMAKE_PREFIX_PATH "..")
        !             7: find_package(Purple REQUIRED)
        !             8: 
        !             9: # have some debug output
        !            10: message(STATUS "PURPLE_INCLUDE_DIRS: ${PURPLE_INCLUDE_DIRS}")
        !            11: message(STATUS "PURPLE_LIBRARY_DIRS: ${PURPLE_LIBRARY_DIRS}")
        !            12: message(STATUS "PURPLE_LIBRARIES: ${PURPLE_LIBRARIES}")
        !            13: message(STATUS "PURPLE_PLUGIN_DIR: ${PURPLE_PLUGIN_DIR}")
        !            14: message(STATUS "PURPLE_DATA_DIR: ${PURPLE_DATA_DIR}")
        !            15: 
        !            16: link_directories(${PURPLE_LIBRARY_DIRS})
        !            17: 
        !            18: # define our target
        !            19: set(TARGET_NAME "oscarprpl")
        !            20: add_library(${TARGET_NAME} SHARED 
        !            21:     "src/c/libaim.c"
        !            22:     "src/c/authorization.c"
        !            23:     "src/c/bstream.c"
        !            24:     "src/c/clientlogin.c"
        !            25:     "src/c/encoding.c"
        !            26:     "src/c/family_admin.c"
        !            27:     "src/c/family_alert.c"
        !            28:     "src/c/family_auth.c"
        !            29:     "src/c/family_bart.c"
        !            30:     "src/c/family_bos.c"
        !            31:     "src/c/family_buddy.c"
        !            32:     "src/c/family_chat.c"
        !            33:     "src/c/family_chatnav.c"
        !            34:     "src/c/family_feedbag.c"
        !            35:     "src/c/family_icbm.c"
        !            36:     "src/c/family_icq.c"
        !            37:     "src/c/family_locate.c"
        !            38:     "src/c/family_oservice.c"
        !            39:     "src/c/family_popup.c"
        !            40:     "src/c/family_stats.c"
        !            41:     "src/c/family_userlookup.c"
        !            42:     "src/c/flap_connection.c"
        !            43:     "src/c/kerberos.c"
        !            44:     "src/c/misc.c"
        !            45:     "src/c/msgcookie.c"
        !            46:     "src/c/odc.c"
        !            47:     "src/c/oft.c"
        !            48:     "src/c/oscar_data.c"
        !            49:     "src/c/oscar.c"
        !            50:     "src/c/peer_proxy.c"
        !            51:     "src/c/peer.c"
        !            52:     "src/c/rxhandlers.c"
        !            53:     "src/c/snac.c"
        !            54:     "src/c/tlv.c"
        !            55:     "src/c/util.c"
        !            56:     "src/c/userinfo.c"
        !            57:     "src/c/visibility.c"
        !            58: )
        !            59: 
        !            60: file(READ "${CMAKE_SOURCE_DIR}/VERSION" PLUGIN_VERSION)
        !            61: target_compile_definitions(${TARGET_NAME} PRIVATE PLUGIN_VERSION=${PLUGIN_VERSION})
        !            62: target_include_directories(${TARGET_NAME} PRIVATE ${PURPLE_INCLUDE_DIRS})
        !            63: target_link_libraries(${TARGET_NAME} PRIVATE ${PURPLE_LIBRARIES}) # TODO: switch to PkgConfig::Purple
        !            64: set_target_properties(${TARGET_NAME} PROPERTIES PREFIX "lib")
        !            65: 
        !            66: # declare destinations
        !            67: if (WIN32)
        !            68:     install(TARGETS ${TARGET_NAME} RUNTIME DESTINATION "${PURPLE_PLUGIN_DIR}")
        !            69: else()
        !            70:     install(TARGETS ${TARGET_NAME} DESTINATION "${PURPLE_PLUGIN_DIR}")
        !            71: endif()
        !            72: install(DIRECTORY "pixmaps" DESTINATION "${PURPLE_DATA_DIR}" FILES_MATCHING PATTERN "*.png")

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>