Skip to content

Commit

Permalink
Remove extra parameter. Fix FreeCAD* names.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdinger authored and wwmayer committed Apr 30, 2014
1 parent cb849b7 commit 6accb6d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/3rdParty/ANN/src/CMakeLists.txt
Expand Up @@ -26,4 +26,4 @@ set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/src/Main)
add_library(ANN SHARED ${ANN_SRCS})
target_link_libraries(ANN ${ANN_LIBS})

SET_BIN_DIR(ANN "ANN" "/bin")
SET_BIN_DIR(ANN ANN)
20 changes: 10 additions & 10 deletions src/3rdParty/salomesmesh/CMakeLists.txt
Expand Up @@ -143,7 +143,7 @@ FILE(GLOB SMDS_source_files src/SMDS/*.cpp inc/SMDS*.hxx)
ADD_LIBRARY(SMDS SHARED ${SMDS_source_files})
TARGET_LINK_LIBRARIES(SMDS ${SMESH_LIBS})

SET_BIN_DIR(SMDS "SMDS" "/bin")
SET_BIN_DIR(SMDS SMDS)
if(WIN32)
set_target_properties(SMDS PROPERTIES COMPILE_FLAGS "-DSMDS_EXPORTS")
endif(WIN32)
Expand All @@ -156,7 +156,7 @@ FILE(GLOB Driver_source_files src/Driver/*.cpp inc/Driver_*.hxx)
ADD_LIBRARY(Driver SHARED ${Driver_source_files})
TARGET_LINK_LIBRARIES(Driver ${SMESH_LIBS})

SET_BIN_DIR(Driver "Driver" "/bin")
SET_BIN_DIR(Driver Driver)
if(WIN32)
set_target_properties(Driver PROPERTIES COMPILE_FLAGS "-DMESHDRIVER_EXPORTS")
endif(WIN32)
Expand All @@ -176,7 +176,7 @@ FILE(GLOB DriverSTL_source_files src/DriverSTL/*.cpp inc/DriverSTL*.h*)
ADD_LIBRARY(DriverSTL SHARED ${DriverSTL_source_files})
TARGET_LINK_LIBRARIES(DriverSTL ${SMESH_LIBS} Driver SMDS)

SET_BIN_DIR(DriverSTL "DriverSTL" "/bin")
SET_BIN_DIR(DriverSTL DriverSTL)
if(WIN32)
set_target_properties(DriverSTL PROPERTIES COMPILE_FLAGS "-DMESHDRIVERSTL_EXPORTS")
endif(WIN32)
Expand All @@ -197,7 +197,7 @@ FILE(GLOB DriverDAT_source_files src/DriverDAT/*.cpp inc/DriverDAT*.h*)
ADD_LIBRARY(DriverDAT SHARED ${DriverDAT_source_files})
TARGET_LINK_LIBRARIES(DriverDAT ${SMESH_LIBS} SMDS Driver)

SET_BIN_DIR(DriverDAT "DriverDAT" "/bin")
SET_BIN_DIR(DriverDAT DriverDAT)
if(WIN32)
set_target_properties(DriverDAT PROPERTIES COMPILE_FLAGS "-DMESHDRIVERDAT_EXPORTS")
endif(WIN32)
Expand All @@ -217,7 +217,7 @@ FILE(GLOB DriverUNV_source_files src/DriverUNV/*.cpp inc/DriverUNV*.h*)
ADD_LIBRARY(DriverUNV SHARED ${DriverUNV_source_files})
TARGET_LINK_LIBRARIES(DriverUNV ${SMESH_LIBS} SMESHDS SMDS Driver)

SET_BIN_DIR(DriverUNV "DriverUNV" "/bin")
SET_BIN_DIR(DriverUNV DriverUNV)
if(WIN32)
set_target_properties(DriverUNV PROPERTIES COMPILE_FLAGS "-DMESHDRIVERUNV_EXPORTS")
endif(WIN32)
Expand All @@ -237,7 +237,7 @@ FILE(GLOB SMESHDS_source_files src/SMESHDS/*.cpp inc/SMESHDS_*.h*)
ADD_LIBRARY(SMESHDS SHARED ${SMESHDS_source_files})
TARGET_LINK_LIBRARIES(SMESHDS ${SMESH_LIBS} SMDS )

SET_BIN_DIR(SMESHDS "SMESHDS" "/bin")
SET_BIN_DIR(SMESHDS SMESHDS)


#IF(MINGW)
Expand All @@ -251,7 +251,7 @@ FILE(GLOB SMESH_source_files src/SMESH/*.cpp src/Controls/*.cpp inc/SMESH_*.h*)
ADD_LIBRARY(SMESH SHARED ${SMESH_source_files})
TARGET_LINK_LIBRARIES(SMESH SMDS SMESHDS Driver DriverSTL DriverDAT DriverUNV ${SMESH_LIBS})

SET_BIN_DIR(SMESH "SMESH" "/bin")
SET_BIN_DIR(SMESH SMESH)
if(WIN32)
set_target_properties(SMESH PROPERTIES COMPILE_FLAGS "-DSMESH_EXPORTS -DSMESHCONTROLS_EXPORTS -DSMESHimpl_EXPORTS")
endif(WIN32)
Expand Down Expand Up @@ -296,7 +296,7 @@ endif(MSVC)

ADD_LIBRARY(MEFISTO2 SHARED ${MEFISTO2_source_files})

SET_BIN_DIR(MEFISTO2 "MEFISTO2" "/bin")
SET_BIN_DIR(MEFISTO2 MEFISTO2)
if(MSVC)
TARGET_LINK_LIBRARIES(MEFISTO2 ${SMESH_LIBS} MEFISTO2f.lib) # in case of Windows link the prebuild Fortran lib
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
Expand All @@ -320,7 +320,7 @@ FILE(GLOB StdMeshers_source_files src/StdMeshers/*.cpp inc/StdMeshers_*.h*)
ADD_LIBRARY(StdMeshers SHARED ${StdMeshers_source_files})
TARGET_LINK_LIBRARIES(StdMeshers SMESH ${SMESH_LIBS} MEFISTO2)

SET_BIN_DIR(StdMeshers "StdMeshers" "/bin")
SET_BIN_DIR(StdMeshers StdMeshers)
if(WIN32)
set_target_properties(StdMeshers PROPERTIES COMPILE_FLAGS "-DSTDMESHERS_EXPORTS")
else(WIN32)
Expand All @@ -346,7 +346,7 @@ FILE(GLOB NETGENPlugin_source_files src/NETGENPlugin/*.cpp inc/NETGENPlugin_*.h*
ADD_LIBRARY(NETGENPlugin SHARED ${NETGENPlugin_source_files})
TARGET_LINK_LIBRARIES(NETGENPlugin SMDS SMESHDS SMESH StdMeshers ${SMESH_LIBS} )

SET_BIN_DIR(NETGENPlugin "NETGENPlugin" "/bin")
SET_BIN_DIR(NETGENPlugin NETGENPlugin)
if(WIN32)
set_target_properties(NETGENPlugin PROPERTIES COMPILE_FLAGS "-DNETGENPLUGIN_EXPORTS -DNO_PARALLEL_THREADS -DOCCGEOMETRY -DNETGEN_V5")
endif(WIN32)
Expand Down
2 changes: 1 addition & 1 deletion src/App/CMakeLists.txt
Expand Up @@ -177,7 +177,7 @@ add_library(FreeCADApp SHARED ${FreeCADApp_SRCS})

target_link_libraries(FreeCADApp ${FreeCADApp_LIBS})

SET_BIN_DIR(FreeCADApp "FreeCADApp" "/bin")
SET_BIN_DIR(FreeCADApp FreeCADApp)

if(WIN32)
INSTALL(TARGETS FreeCADApp
Expand Down
2 changes: 1 addition & 1 deletion src/Base/CMakeLists.txt
Expand Up @@ -319,7 +319,7 @@ add_library(FreeCADBase SHARED ${FreeCADBase_SRCS})

target_link_libraries(FreeCADBase ${FreeCADBase_LIBS})

SET_BIN_DIR(FreeCADBase "FreeCADBase" "/bin")
SET_BIN_DIR(FreeCADBase FreeCADBase)

if(WIN32)
INSTALL(TARGETS FreeCADBase
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/CMakeLists.txt
Expand Up @@ -932,7 +932,7 @@ add_library(FreeCADGui SHARED ${FreeCADGui_SRCS})

target_link_libraries(FreeCADGui ${FreeCADGui_LIBS})

SET_BIN_DIR(FreeCADGui "FreeCADGui" "/bin")
SET_BIN_DIR(FreeCADGui FreeCADGui)

if(WIN32)
INSTALL(TARGETS FreeCADGui
Expand Down
8 changes: 4 additions & 4 deletions src/Main/CMakeLists.txt
Expand Up @@ -45,7 +45,7 @@ if(FREECAD_BUILD_GUI)
add_executable(FreeCADMain WIN32 ${FreeCAD_SRCS})
target_link_libraries(FreeCADMain ${FreeCAD_LIBS})

SET_BIN_DIR(FreeCADMain "FreeCADMain" "/bin")
SET_BIN_DIR(FreeCADMain FreeCAD)

if(WIN32)
INSTALL(TARGETS FreeCADMain
Expand All @@ -71,7 +71,7 @@ target_link_libraries(FreeCADMainCmd
${QT_LIBRARIES}
)

SET_BIN_DIR(FreeCADMainCmd "FreeCADMainCmd" "/bin")
SET_BIN_DIR(FreeCADMainCmd FreeCADCmd)

if(WIN32)
INSTALL(TARGETS FreeCADMainCmd
Expand All @@ -94,7 +94,7 @@ add_library(FreeCADMainPy SHARED ${FreeCADMainPy_SRCS})

target_link_libraries(FreeCADMainPy FreeCADApp)

SET_BIN_DIR(FreeCADMainPy "FreeCADMainPy" "/bin")
SET_BIN_DIR(FreeCADMainPy FreeCAD)
if(WIN32)
set_target_properties(FreeCADMainPy PROPERTIES SUFFIX ".pyd")
endif(WIN32)
Expand All @@ -121,7 +121,7 @@ if(FREECAD_BUILD_GUI)

target_link_libraries(FreeCADGuiPy FreeCADGui)

SET_BIN_DIR(FreeCADGuiPy "FreeCADGuiPy" "/bin")
SET_BIN_DIR(FreeCADGuiPy FreeCADGui)
if(WIN32)
set_target_properties(FreeCADGuiPy PROPERTIES SUFFIX ".pyd")
endif(WIN32)
Expand Down

0 comments on commit 6accb6d

Please sign in to comment.