Better ANSI C compatibility and portability - part 1:
authorcarl <cecodere@yahoo.ca>
Mon, 18 Feb 2019 16:31:29 +0000 (00:31 +0800)
committercarl <cecodere@yahoo.ca>
Mon, 18 Feb 2019 16:54:23 +0000 (00:54 +0800)
+ 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 [new file with mode: 0644]

diff --git a/modules/h/CMakeLists.txt b/modules/h/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d8ed4ba
--- /dev/null
@@ -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
+)
+