summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--legacy/eobj/CMakeLists.txt9
-rw-r--r--legacy/eobj/eobj.pc.in13
-rw-r--r--legacy/eobj/lib/CMakeLists.txt4
3 files changed, 26 insertions, 0 deletions
diff --git a/legacy/eobj/CMakeLists.txt b/legacy/eobj/CMakeLists.txt
index 3a9fd4b1dd..57d241cf28 100644
--- a/legacy/eobj/CMakeLists.txt
+++ b/legacy/eobj/CMakeLists.txt
@@ -50,3 +50,12 @@ add_subdirectory(examples/composite_objects)
50add_subdirectory(tests EXCLUDE_FROM_ALL) 50add_subdirectory(tests EXCLUDE_FROM_ALL)
51 51
52add_subdirectory(doc) 52add_subdirectory(doc)
53
54# PKGCONFIG file.
55CONFIGURE_FILE(
56 "${PROJECT_SOURCE_DIR}/eobj.pc.in"
57 "${PROJECT_BINARY_DIR}/eobj.pc"
58 )
59
60INSTALL(FILES "${PROJECT_BINARY_DIR}/eobj.pc"
61 DESTINATION "lib/pkgconfig")
diff --git a/legacy/eobj/eobj.pc.in b/legacy/eobj/eobj.pc.in
new file mode 100644
index 0000000000..09759ecde3
--- /dev/null
+++ b/legacy/eobj/eobj.pc.in
@@ -0,0 +1,13 @@
1prefix=@CMAKE_INSTALL_PREFIX@
2exec_prefix=${prefix}
3libdir=${exec_prefix}/lib
4includedir=${prefix}/include
5
6Name: Eobj
7Description: EFL's generic object system library.
8Version: @EOBJ_VERSION@
9Libs: -L${libdir} -leobj
10Libs.private:
11Cflags: -I${includedir}/eobj-@EOBJ_VERSION_MAJOR@
12
13~
diff --git a/legacy/eobj/lib/CMakeLists.txt b/legacy/eobj/lib/CMakeLists.txt
index 37ecd6d2c9..7d73fee5f1 100644
--- a/legacy/eobj/lib/CMakeLists.txt
+++ b/legacy/eobj/lib/CMakeLists.txt
@@ -17,3 +17,7 @@ set_target_properties(eobj PROPERTIES
17set_target_properties(eobj PROPERTIES 17set_target_properties(eobj PROPERTIES
18 VERSION ${EOBJ_VERSION} SOVERSION ${EOBJ_VERSION_MAJOR}) 18 VERSION ${EOBJ_VERSION} SOVERSION ${EOBJ_VERSION_MAJOR})
19set_target_properties(eobj PROPERTIES OUTPUT_NAME "eobj") 19set_target_properties(eobj PROPERTIES OUTPUT_NAME "eobj")
20
21INSTALL(TARGETS eobj DESTINATION "lib")
22INSTALL(FILES "${CMAKE_CURRENT_SOURCE_DIR}/Eobj.h"
23 DESTINATION "include")