Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

CMakeLists.txt 1.16 KB
Newer Older
1 2
include_directories(${CMAKE_CURRENT_BINARY_DIR}/..)

3
set( compilerprovider_SRCS
4
        compilerprovider.cpp
5
        icompiler.cpp
6 7
        gcclikecompiler.cpp
        msvccompiler.cpp
8
        compilerfactories.cpp
9
        settingsmanager.cpp
10 11
        widget/compilersmodel.cpp
        widget/compilerswidget.cpp
12
        ${kdevdefinesandincludesmanager_LOG_SRCS}
13 14
    )

15 16 17 18
ki18n_wrap_ui(compilerprovider_SRCS
    widget/compilerswidget.ui
)

19
add_library(kdevcompilerprovider STATIC
20
        ${compilerprovider_SRCS})
21 22
target_link_libraries(kdevcompilerprovider
    PRIVATE
23 24
        KDev::Project
        KDev::Util
25 26
        KDev::Language
)
Kevin Funk's avatar
Kevin Funk committed
27
set_target_properties(kdevcompilerprovider PROPERTIES POSITION_INDEPENDENT_CODE ON)
28 29 30 31 32 33 34 35

option(BUILD_kdev_msvcdefinehelper "Build the msvcdefinehelper tool for retrieving msvc standard macro definitions" OFF)

if(BUILD_kdev_msvcdefinehelper)
    set(kdevmsvcdefinehelper_SRCS msvcdefinehelper.cpp)
    add_executable(kdevmsvcdefinehelper ${kdevmsvcdefinehelper_SRCS})
    install(TARGETS kdevmsvcdefinehelper RUNTIME DESTINATION bin
                                         LIBRARY DESTINATION lib)
36
endif()
37

38 39 40
if(BUILD_TESTING)
    add_subdirectory(tests)
endif()