diff --git a/CMakeLists.txt b/CMakeLists.txt index cad43f7..f020baa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,8 @@ +cmake_minimum_required(VERSION 2.8) project(subhook) -cmake_minimum_required(VERSION 2.8) - -set(SUBHOOK_HEADERS "include/subhook.h") -set(SUBHOOK_SOURCES "src/subhook.c" - "src/subhook_private.h") +set(SUBHOOK_HEADERS "subhook.h") +set(SUBHOOK_SOURCES "subhook.c" "subhook_private.h") add_definitions(-DSUBHOOK_IMPLEMENTATION) @@ -14,9 +12,9 @@ else() add_library(subhook SHARED ${SUBHOOK_HEADERS} ${SUBHOOK_SOURCES}) endif() -include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include") +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) set_property(DIRECTORY ${CMAKE_SOURCE_DIR} APPEND PROPERTY INCLUDE_DIRECTORIES - "${CMAKE_CURRENT_SOURCE_DIR}/include") + ${CMAKE_CURRENT_SOURCE_DIR}) if(SUBHOOK_STATIC) add_definitions(-DSUBHOOK_STATIC) diff --git a/src/subhook.c b/subhook.c similarity index 100% rename from src/subhook.c rename to subhook.c diff --git a/include/subhook.h b/subhook.h similarity index 100% rename from include/subhook.h rename to subhook.h diff --git a/src/subhook_linux.c b/subhook_linux.c similarity index 100% rename from src/subhook_linux.c rename to subhook_linux.c diff --git a/src/subhook_private.h b/subhook_private.h similarity index 100% rename from src/subhook_private.h rename to subhook_private.h diff --git a/src/subhook_windows.c b/subhook_windows.c similarity index 100% rename from src/subhook_windows.c rename to subhook_windows.c diff --git a/src/subhook_x86.c b/subhook_x86.c similarity index 100% rename from src/subhook_x86.c rename to subhook_x86.c