2016-09-26 06:17:57 +00:00
|
|
|
include_directories( BEFORE
|
2017-03-09 02:40:41 +00:00
|
|
|
pcb
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/include
|
2016-09-26 06:17:57 +00:00
|
|
|
)
|
|
|
|
|
2018-05-15 13:40:25 +00:00
|
|
|
include_directories( SYSTEM
|
|
|
|
${OCE_INCLUDE_DIRS}
|
2018-01-26 00:38:29 +00:00
|
|
|
${OCC_INCLUDE_DIR}
|
2016-09-02 10:08:40 +00:00
|
|
|
)
|
|
|
|
|
2017-03-09 02:40:41 +00:00
|
|
|
set( K2S_FILES
|
2016-09-02 10:08:40 +00:00
|
|
|
kicad2step.cpp
|
|
|
|
pcb/3d_resolver.cpp
|
|
|
|
pcb/base.cpp
|
|
|
|
pcb/kicadmodel.cpp
|
|
|
|
pcb/kicadmodule.cpp
|
|
|
|
pcb/kicadpad.cpp
|
|
|
|
pcb/kicadpcb.cpp
|
|
|
|
pcb/kicadcurve.cpp
|
|
|
|
pcb/oce_utils.cpp
|
|
|
|
sexpr/sexpr.cpp
|
|
|
|
sexpr/sexpr_parser.cpp
|
|
|
|
)
|
|
|
|
|
2017-03-09 02:40:41 +00:00
|
|
|
if( MINGW )
|
|
|
|
list( APPEND K2S_FILES ${CMAKE_SOURCE_DIR}/common/streamwrapper.cpp )
|
|
|
|
endif( MINGW )
|
|
|
|
|
|
|
|
add_executable( kicad2step ${K2S_FILES} )
|
|
|
|
|
2019-04-15 22:34:52 +00:00
|
|
|
target_link_libraries( kicad2step ${wxWidgets_LIBRARIES} ${OCC_LIBRARIES} Boost::boost )
|
2016-09-02 10:08:40 +00:00
|
|
|
|
2016-09-10 23:19:56 +00:00
|
|
|
if( APPLE )
|
|
|
|
# puts binaries into the *.app bundle while linking
|
|
|
|
set_target_properties( kicad2step PROPERTIES
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY ${OSX_BUNDLE_BUILD_BIN_DIR}
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
install( TARGETS kicad2step
|
|
|
|
DESTINATION ${KICAD_BIN}
|
|
|
|
COMPONENT binary )
|
|
|
|
endif()
|