File: coz-profilerConfig.cmake.in

package info (click to toggle)
coz-profiler 0.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 22,528 kB
  • sloc: ansic: 188,045; javascript: 20,133; cpp: 6,852; makefile: 214; python: 118; sh: 88
file content (26 lines) | stat: -rw-r--r-- 732 bytes parent folder | download
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


set(COZDIR destdir)

set(COZ_BIN ${COZDIR}/bin/coz)
set(COZ_INCLUDE_DIR ${COZDIR}/include)
get_filename_component(LIBRARY_DIR ${CMAKE_CURRENT_LIST_FILE} DIRECTORY)
set(COZ_LIBRARY ${LIBRARY_DIR}/libcoz.so)

set(COZ_FOUND ON)

message(INFO " ${COZ_INCLUDE_DIR} ${COZ_LIBRARY} ${COZ_FOUND}")

mark_as_advanced(COZ_FOUND COZ_INCLUDE_DIR COZ_LIBRARY)

add_library(coz::coz UNKNOWN IMPORTED)
set_target_properties(coz::coz PROPERTIES 
    INTERFACE_INCLUDE_DIRECTORIES "${COZ_INCLUDE_DIR}")

set_target_properties(coz::coz PROPERTIES 
    IMPORTED_LINK_INTERFACE_LANGUAGES "C"
    IMPORTED_LOCATION "${COZ_INCLUDE_DIR}")

add_executable(coz::profiler IMPORTED)

set_property(TARGET coz::profiler PROPERTY IMPORTED_LOCATION ${COZ_BIN})