Fixed issues on linking and namespaces. Added example
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">])
|
||||
|
||||
#IncludeRegexScan: ^.*$
|
||||
|
||||
#IncludeRegexComplain: ^$
|
||||
|
||||
#IncludeRegexTransform:
|
||||
|
||||
/home/jan/skysql/skygateway/skygateway/table_replication_consistency/test/Example.c
|
||||
table_replication_consistency.h
|
||||
/home/jan/skysql/skygateway/skygateway/table_replication_consistency/test/table_replication_consistency.h
|
||||
getopt.h
|
||||
-
|
||||
stdlib.h
|
||||
-
|
||||
errno.h
|
||||
-
|
||||
stdio.h
|
||||
-
|
||||
|
||||
/usr/local/include/table_replication_consistency.h
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
# The set of languages for which implicit dependencies are needed:
|
||||
SET(CMAKE_DEPENDS_LANGUAGES
|
||||
"C"
|
||||
)
|
||||
# The set of files for implicit dependencies of each language:
|
||||
SET(CMAKE_DEPENDS_CHECK_C
|
||||
"/home/jan/skysql/skygateway/skygateway/table_replication_consistency/test/Example.c" "/home/jan/skysql/skygateway/skygateway/table_replication_consistency/test/CMakeFiles/Example.dir/Example.c.o"
|
||||
)
|
||||
SET(CMAKE_C_COMPILER_ID "GNU")
|
||||
|
||||
# Targets to which this target links.
|
||||
SET(CMAKE_TARGET_LINKED_INFO_FILES
|
||||
)
|
||||
|
||||
# The include file search paths:
|
||||
SET(CMAKE_C_TARGET_INCLUDE_PATH
|
||||
"/usr/local/include"
|
||||
"/home/jan/skysql/skygateway/skygateway/utils"
|
||||
)
|
||||
SET(CMAKE_CXX_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
|
||||
SET(CMAKE_Fortran_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
|
||||
SET(CMAKE_ASM_TARGET_INCLUDE_PATH ${CMAKE_C_TARGET_INCLUDE_PATH})
|
||||
@ -0,0 +1,102 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E remove -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /home/jan/skysql/skygateway/skygateway/table_replication_consistency/test
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /home/jan/skysql/skygateway/skygateway/table_replication_consistency/test
|
||||
|
||||
# Include any dependencies generated for this target.
|
||||
include CMakeFiles/Example.dir/depend.make
|
||||
|
||||
# Include the progress variables for this target.
|
||||
include CMakeFiles/Example.dir/progress.make
|
||||
|
||||
# Include the compile flags for this target's objects.
|
||||
include CMakeFiles/Example.dir/flags.make
|
||||
|
||||
CMakeFiles/Example.dir/Example.c.o: CMakeFiles/Example.dir/flags.make
|
||||
CMakeFiles/Example.dir/Example.c.o: Example.c
|
||||
$(CMAKE_COMMAND) -E cmake_progress_report /home/jan/skysql/skygateway/skygateway/table_replication_consistency/test/CMakeFiles $(CMAKE_PROGRESS_1)
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Building C object CMakeFiles/Example.dir/Example.c.o"
|
||||
/usr/bin/gcc $(C_DEFINES) $(C_FLAGS) -o CMakeFiles/Example.dir/Example.c.o -c /home/jan/skysql/skygateway/skygateway/table_replication_consistency/test/Example.c
|
||||
|
||||
CMakeFiles/Example.dir/Example.c.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/Example.dir/Example.c.i"
|
||||
/usr/bin/gcc $(C_DEFINES) $(C_FLAGS) -E /home/jan/skysql/skygateway/skygateway/table_replication_consistency/test/Example.c > CMakeFiles/Example.dir/Example.c.i
|
||||
|
||||
CMakeFiles/Example.dir/Example.c.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/Example.dir/Example.c.s"
|
||||
/usr/bin/gcc $(C_DEFINES) $(C_FLAGS) -S /home/jan/skysql/skygateway/skygateway/table_replication_consistency/test/Example.c -o CMakeFiles/Example.dir/Example.c.s
|
||||
|
||||
CMakeFiles/Example.dir/Example.c.o.requires:
|
||||
.PHONY : CMakeFiles/Example.dir/Example.c.o.requires
|
||||
|
||||
CMakeFiles/Example.dir/Example.c.o.provides: CMakeFiles/Example.dir/Example.c.o.requires
|
||||
$(MAKE) -f CMakeFiles/Example.dir/build.make CMakeFiles/Example.dir/Example.c.o.provides.build
|
||||
.PHONY : CMakeFiles/Example.dir/Example.c.o.provides
|
||||
|
||||
CMakeFiles/Example.dir/Example.c.o.provides.build: CMakeFiles/Example.dir/Example.c.o
|
||||
|
||||
# Object files for target Example
|
||||
Example_OBJECTS = \
|
||||
"CMakeFiles/Example.dir/Example.c.o"
|
||||
|
||||
# External object files for target Example
|
||||
Example_EXTERNAL_OBJECTS =
|
||||
|
||||
Example: CMakeFiles/Example.dir/Example.c.o
|
||||
Example: CMakeFiles/Example.dir/build.make
|
||||
Example: CMakeFiles/Example.dir/link.txt
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking C executable Example"
|
||||
$(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/Example.dir/link.txt --verbose=$(VERBOSE)
|
||||
|
||||
# Rule to build all files generated by this target.
|
||||
CMakeFiles/Example.dir/build: Example
|
||||
.PHONY : CMakeFiles/Example.dir/build
|
||||
|
||||
CMakeFiles/Example.dir/requires: CMakeFiles/Example.dir/Example.c.o.requires
|
||||
.PHONY : CMakeFiles/Example.dir/requires
|
||||
|
||||
CMakeFiles/Example.dir/clean:
|
||||
$(CMAKE_COMMAND) -P CMakeFiles/Example.dir/cmake_clean.cmake
|
||||
.PHONY : CMakeFiles/Example.dir/clean
|
||||
|
||||
CMakeFiles/Example.dir/depend:
|
||||
cd /home/jan/skysql/skygateway/skygateway/table_replication_consistency/test && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/jan/skysql/skygateway/skygateway/table_replication_consistency/test /home/jan/skysql/skygateway/skygateway/table_replication_consistency/test /home/jan/skysql/skygateway/skygateway/table_replication_consistency/test /home/jan/skysql/skygateway/skygateway/table_replication_consistency/test /home/jan/skysql/skygateway/skygateway/table_replication_consistency/test/CMakeFiles/Example.dir/DependInfo.cmake --color=$(COLOR)
|
||||
.PHONY : CMakeFiles/Example.dir/depend
|
||||
|
||||
@ -0,0 +1,10 @@
|
||||
FILE(REMOVE_RECURSE
|
||||
"CMakeFiles/Example.dir/Example.c.o"
|
||||
"Example.pdb"
|
||||
"Example"
|
||||
)
|
||||
|
||||
# Per-language clean rules from dependency scanning.
|
||||
FOREACH(lang C)
|
||||
INCLUDE(CMakeFiles/Example.dir/cmake_clean_${lang}.cmake OPTIONAL)
|
||||
ENDFOREACH(lang)
|
||||
@ -0,0 +1,6 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
|
||||
|
||||
CMakeFiles/Example.dir/Example.c.o
|
||||
/home/jan/skysql/skygateway/skygateway/table_replication_consistency/test/Example.c
|
||||
/usr/local/include/table_replication_consistency.h
|
||||
@ -0,0 +1,6 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
|
||||
|
||||
CMakeFiles/Example.dir/Example.c.o: Example.c
|
||||
CMakeFiles/Example.dir/Example.c.o: /usr/local/include/table_replication_consistency.h
|
||||
|
||||
@ -0,0 +1,8 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
|
||||
|
||||
# compile C with /usr/bin/gcc
|
||||
C_FLAGS = -I/usr/local/include -I/home/jan/skysql/skygateway/skygateway/utils
|
||||
|
||||
C_DEFINES =
|
||||
|
||||
@ -0,0 +1 @@
|
||||
/usr/bin/gcc CMakeFiles/Example.dir/Example.c.o -o Example -rdynamic -Wl,-Bstatic -ltable_replication_consistency -Wl,-Bdynamic -lreplication -lboost_system -lpthread
|
||||
@ -0,0 +1,2 @@
|
||||
CMAKE_PROGRESS_1 = 1
|
||||
|
||||
Reference in New Issue
Block a user