File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ endif(Boost_INCLUDE_DIRS)
17
17
18
18
FIND_PACKAGE (Boost COMPONENTS program_options REQUIRED)
19
19
20
- FILE (GLOB SRC "${CMAKE_SOURCE_DIR} /src/*/*.cpp" )
20
+ FILE (GLOB osm2pgrouting_lib_SOURCES "${CMAKE_SOURCE_DIR} /src/*/*.cpp" )
21
21
22
22
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FILE_OFFSET_BITS=64 -std=c++0x" )
23
23
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wconversion -pedantic -Wextra -frounding-math -Wno-deprecated -fmax-errors=10" )
@@ -40,7 +40,7 @@ INCLUDE_DIRECTORIES(src
40
40
${OSM2PGROUTING_INCLUDE_DIRS}
41
41
)
42
42
43
- ADD_EXECUTABLE (osm2pgrouting ${SRC } )
43
+ ADD_EXECUTABLE (osm2pgrouting ${osm2pgrouting_lib_SOURCES } )
44
44
45
45
TARGET_LINK_LIBRARIES (osm2pgrouting
46
46
${LIBPQXX_LIBRARIES}
@@ -53,6 +53,10 @@ INSTALL(TARGETS osm2pgrouting
53
53
RUNTIME DESTINATION "/usr/bin"
54
54
)
55
55
56
+ if (WIN32 )
57
+ target_link_libraries (osm2pgrouting wsock32 ws2_32)
58
+ endif ()
59
+
56
60
INSTALL (FILES
57
61
"${CMAKE_SOURCE_DIR} /COPYING"
58
62
"${CMAKE_SOURCE_DIR} /Readme.md"
You can’t perform that action at this time.
0 commit comments