CMakeLists.txt 946 Bytes
Newer Older
1
2
3
set(makefileresolver_SRCS
    makefileresolver.cpp
)
4

5
add_library(kdevmakefileresolver STATIC
6
7
    ${makefileresolver_SRCS}
)
8
target_link_libraries(kdevmakefileresolver
9
  KDev::Interfaces KDev::Project
10
  Qt5::Core Qt5::Gui KDev::Language
11
  KDev::Tests
Kevin Funk's avatar
Kevin Funk committed
12
)
13
14
15
16
if(WIN32)
    target_include_directories(kdevmakefileresolver PUBLIC ${KDEWIN_INCLUDES})
    target_link_libraries(kdevmakefileresolver ${KDEWIN_LIBRARIES})
endif()
17
set_target_properties(kdevmakefileresolver PROPERTIES POSITION_INDEPENDENT_CODE ON)
18

19
option(BUILD_kdev_makefileresolver "Build the makefile resolver debugging tool" OFF)
20
if(BUILD_kdev_makefileresolver)
21
22
    add_executable(kdev_makefileresolver makefileresolver.cpp)
    set_target_properties( kdev_makefileresolver PROPERTIES COMPILE_FLAGS -DTEST )
23
    target_link_libraries(kdev_makefileresolver kdevmakefileresolver)
Kevin Funk's avatar
Kevin Funk committed
24

25
26
    install(TARGETS kdev_makefileresolver ${INSTALL_TARGETS_DEFAULT_ARGS} )
endif()
27

Kevin Funk's avatar
Kevin Funk committed
28
add_subdirectory(tests)