aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeex <zeex@rocketmail.com>2013-12-14 20:37:16 +0700
committerZeex <zeex@rocketmail.com>2013-12-14 20:38:09 +0700
commit48e7a711aedbf25ead8f0f7c83f3ea3b997f7137 (patch)
tree59e823a261541d67c5163637777cc64275d29998
parent6e07e753c525b0aabca3e4fb5f694a21e808dcb5 (diff)
downloadsubhook-48e7a711aedbf25ead8f0f7c83f3ea3b997f7137.zip
subhook-48e7a711aedbf25ead8f0f7c83f3ea3b997f7137.tar.gz
subhook-48e7a711aedbf25ead8f0f7c83f3ea3b997f7137.tar.bz2
Move sources and headers to src and include
-rw-r--r--CMakeLists.txt12
-rw-r--r--include/subhook.h (renamed from subhook.h)0
-rw-r--r--src/subhook.c (renamed from subhook.c)0
-rw-r--r--src/subhook_linux.c (renamed from subhook_linux.c)0
-rw-r--r--src/subhook_private.h (renamed from subhook_private.h)0
-rw-r--r--src/subhook_windows.c (renamed from subhook_windows.c)0
-rw-r--r--src/subhook_x86.c (renamed from subhook_x86.c)0
7 files changed, 7 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f020baa..cad43f7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,8 +1,10 @@
-cmake_minimum_required(VERSION 2.8)
project(subhook)
-set(SUBHOOK_HEADERS "subhook.h")
-set(SUBHOOK_SOURCES "subhook.c" "subhook_private.h")
+cmake_minimum_required(VERSION 2.8)
+
+set(SUBHOOK_HEADERS "include/subhook.h")
+set(SUBHOOK_SOURCES "src/subhook.c"
+ "src/subhook_private.h")
add_definitions(-DSUBHOOK_IMPLEMENTATION)
@@ -12,9 +14,9 @@ else()
add_library(subhook SHARED ${SUBHOOK_HEADERS} ${SUBHOOK_SOURCES})
endif()
-include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} APPEND PROPERTY INCLUDE_DIRECTORIES
- ${CMAKE_CURRENT_SOURCE_DIR})
+ "${CMAKE_CURRENT_SOURCE_DIR}/include")
if(SUBHOOK_STATIC)
add_definitions(-DSUBHOOK_STATIC)
diff --git a/subhook.h b/include/subhook.h
index 4e31359..4e31359 100644
--- a/subhook.h
+++ b/include/subhook.h
diff --git a/subhook.c b/src/subhook.c
index 7d9ea6b..7d9ea6b 100644
--- a/subhook.c
+++ b/src/subhook.c
diff --git a/subhook_linux.c b/src/subhook_linux.c
index 3202cf6..3202cf6 100644
--- a/subhook_linux.c
+++ b/src/subhook_linux.c
diff --git a/subhook_private.h b/src/subhook_private.h
index c3de967..c3de967 100644
--- a/subhook_private.h
+++ b/src/subhook_private.h
diff --git a/subhook_windows.c b/src/subhook_windows.c
index 2968188..2968188 100644
--- a/subhook_windows.c
+++ b/src/subhook_windows.c
diff --git a/subhook_x86.c b/src/subhook_x86.c
index 4f03c7b..4f03c7b 100644
--- a/subhook_x86.c
+++ b/src/subhook_x86.c