5 changed files with 67 additions and 7 deletions
@ -0,0 +1,22 @@ |
|||||
|
aux_source_directory(${CMAKE_SOURCE_DIR}/lib SRC_FILES_IN_LIB) |
||||
|
message(STATUS "SRC_FILES_IN_LIB: ${SRC_FILES_IN_LIB}") |
||||
|
|
||||
|
add_library(WireRouting SHARED ${SRC_FILES_IN_LIB}) |
||||
|
target_compile_definitions(WireRouting PUBLIC -DMY_LIB_SHARED_BUILD) |
||||
|
target_compile_definitions(WireRouting PRIVATE -DMY_LIB_EXPORTS) |
||||
|
|
||||
|
INSTALL(TARGETS WireRouting DESTINATION ${CMAKE_SOURCE_DIR}/lib) |
||||
|
|
||||
|
SET_TARGET_PROPERTIES( |
||||
|
WireRouting PROPERTIES LINKER_LANGUAGE C |
||||
|
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib |
||||
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib |
||||
|
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib |
||||
|
OUTPUT_NAME "WireRouting" |
||||
|
PREFIX "" |
||||
|
) |
||||
|
|
||||
|
target_include_directories( |
||||
|
WireRouting PUBLIC |
||||
|
${CMAKE_SOURCE_DIR}/include |
||||
|
) |
@ -1,5 +1,9 @@ |
|||||
#include "Point.h" |
#include "Point.h" |
||||
|
|
||||
|
bool Equal(double a, double b) |
||||
|
{ |
||||
|
return ((fabs(a - b) < eps) ? true : false); |
||||
|
} |
||||
|
|
||||
bool P::operator<(P B) const |
bool P::operator<(P B) const |
||||
{ |
{ |
Loading…
Reference in new issue