File: CMakeLists.txt

package info (click to toggle)
libjdns 2.0.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 552 kB
  • sloc: ansic: 6,747; cpp: 2,915; makefile: 17
file content (36 lines) | stat: -rw-r--r-- 1,052 bytes parent folder | download | duplicates (22)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
set(jdns_tool_MOC_HDRS
    main.h
)

if(NOT Qt5Core_FOUND)
  qt4_wrap_cpp(jdns_tool_MOC_SRCS ${jdns_tool_MOC_HDRS})
endif()

set(jdns_tool_SRCS
    main.cpp
)

add_executable(jdns-tool ${jdns_tool_SRCS} ${jdns_tool_MOC_SRCS} ${jdns_tool_MOC_SRCS})

target_link_libraries(jdns-tool jdns qjdns)

set_target_properties(jdns-tool PROPERTIES
                      OUTPUT_NAME jdns
)

install(TARGETS jdns-tool
        LIBRARY DESTINATION ${LIB_INSTALL_DIR}
        RUNTIME DESTINATION ${BIN_INSTALL_DIR}
        ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
#       FRAMEWORK DESTINATION ${FRAMEWORK_INSTALL_DIR}
)

if(MSVC)
  get_target_property(LOCATION jdns-tool LOCATION_DEBUG)
  string(REGEX REPLACE "\\.[^.]*$" ".pdb" LOCATION "${LOCATION}")
  install(FILES ${LOCATION} DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS Debug)

  get_target_property(LOCATION jdns-tool LOCATION_RELWITHDEBINFO)
  string(REGEX REPLACE "\\.[^.]*$" ".pdb" LOCATION "${LOCATION}")
  install(FILES ${LOCATION} DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS RelWithDebInfo)
endif(MSVC)