From 4555c1c8cf764a4f54b27cf37f34ef8071416e95 Mon Sep 17 00:00:00 2001 From: carl Date: Tue, 19 Feb 2019 00:31:29 +0800 Subject: [PATCH] Better ANSI C compatibility and portability - part 1: + Addition of function prototypes. + Change function definitions to ANSI C style. + Convert to sed scripts some shell scripts for better portability. + Reduce usage of em_path.h --- modules/h/CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/h/CMakeLists.txt diff --git a/modules/h/CMakeLists.txt b/modules/h/CMakeLists.txt new file mode 100644 index 000000000..d8ed4badc --- /dev/null +++ b/modules/h/CMakeLists.txt @@ -0,0 +1,18 @@ +cmake_minimum_required (VERSION 3.0) +project(emh) + +# Create an include only library to be used +# for easier dependency management. + + +add_library(${PROJECT_NAME} INTERFACE) +target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) + + +install(TARGETS ${PROJECT_NAME} + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + PUBLIC_HEADER DESTINATION include +) +