2014-02-05 09:27:21 +00:00
|
|
|
include_directories(
|
|
|
|
"${CMAKE_SOURCE_DIR}/lib_dxf"
|
|
|
|
"${CMAKE_SOURCE_DIR}/utils/idftools"
|
2014-12-16 20:47:47 +00:00
|
|
|
${OPENGL_INCLUDE_DIR}
|
2014-02-05 09:27:21 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
link_directories(
|
|
|
|
"${CMAKE_BINARY_DIR}/lib_dxf"
|
2014-05-28 06:26:46 +00:00
|
|
|
)
|
2014-02-05 09:27:21 +00:00
|
|
|
|
2014-05-28 06:26:46 +00:00
|
|
|
add_library( idf3 STATIC
|
|
|
|
idf_helpers.cpp idf_common.cpp idf_outlines.cpp
|
|
|
|
idf_parser.cpp vrml_layer.cpp )
|
2014-02-05 09:27:21 +00:00
|
|
|
|
2014-05-28 06:26:46 +00:00
|
|
|
add_executable( idfcyl idf_cylinder.cpp )
|
2014-02-05 09:27:21 +00:00
|
|
|
add_executable( idfrect idf_rect.cpp )
|
2014-05-28 06:26:46 +00:00
|
|
|
add_executable( dxf2idf dxf2idfmain.cpp dxf2idf.cpp )
|
|
|
|
add_executable( idf2vrml idf2vrml.cpp )
|
2014-02-05 09:27:21 +00:00
|
|
|
|
2014-05-28 06:26:46 +00:00
|
|
|
target_link_libraries( dxf2idf lib_dxf idf3 ${wxWidgets_LIBRARIES} )
|
|
|
|
|
2014-05-29 16:04:54 +00:00
|
|
|
target_link_libraries( idf2vrml idf3 ${OPENGL_LIBRARIES} ${wxWidgets_LIBRARIES} )
|
2014-02-05 09:27:21 +00:00
|
|
|
|
2014-10-02 23:03:52 +00:00
|
|
|
if( APPLE )
|
|
|
|
# puts binaries into the *.app bundle while linking
|
|
|
|
set_target_properties( idfcyl idfrect dxf2idf idf2vrml PROPERTIES
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY ${OSX_BUNDLE_BUILD_BIN_DIR}
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
install( TARGETS idfcyl idfrect dxf2idf idf2vrml
|
|
|
|
DESTINATION ${KICAD_BIN}
|
|
|
|
COMPONENT binary )
|
|
|
|
endif()
|