diff options
author | Jiwoong Im <jiwoong.im@samsung.com> | 2016-11-18 10:43:49 +0900 |
---|---|---|
committer | Jiwoong Im <jiwoong.im@samsung.com> | 2016-11-18 10:43:49 +0900 |
commit | 488a44820e019dda774d4339bc3e5757bd97f502 (patch) | |
tree | 96dc5f4058981c6b0b17bdf737c5b687507430f1 | |
parent | 1e4b42f70ebca5ce16c7b1a4283d63634b388d5c (diff) | |
download | libeventsystem-488a44820e019dda774d4339bc3e5757bd97f502.tar.gz libeventsystem-488a44820e019dda774d4339bc3e5757bd97f502.tar.bz2 libeventsystem-488a44820e019dda774d4339bc3e5757bd97f502.zip |
Fix CMakeLists.txtsubmit/tizen_3.0/20161122.021326submit/tizen/20161124.000829accepted/tizen/wearable/20161125.004030accepted/tizen/tv/20161125.003908accepted/tizen/mobile/20161125.003605accepted/tizen/ivi/20161125.004143accepted/tizen/common/20161125.095144accepted/tizen/3.0/wearable/20161123.083209accepted/tizen/3.0/tv/20161123.083153accepted/tizen/3.0/mobile/20161123.083136accepted/tizen/3.0/ivi/20161123.083225accepted/tizen/3.0/common/20161123.140622
To make extendible for adding source & header files.
Change-Id: Ibb73e9f65212fc384393cc4a1fee5a743e26946d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 08cad00..e44e3be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(eventsystem C) +AUX_SOURCE_DIRECTORY(src/ SRCS) SET(VERSION 0.0.1) SET(VERSION_MAJOR 0) @@ -35,9 +36,7 @@ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed") ## build eventsystem library -add_library(eventsystem SHARED - src/eventsystem.c - ) +add_library(eventsystem SHARED ${SRCS}) #TARGET_LINK_LIBRARIES(eventsystem "-ldl") TARGET_LINK_LIBRARIES(eventsystem ${libpkgs_LDFLAGS}) @@ -50,5 +49,7 @@ configure_file(eventsystem.manifest.in eventsystem.manifest @ONLY) INSTALL(TARGETS eventsystem DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries) INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/eventsystem.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/eventsystem.h DESTINATION include) -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/eventsystem_internal.h DESTINATION include) +INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/include/ DESTINATION include/ + FILES_MATCHING + PATTERN "*.h" + ) |