Commit 23172cce authored by Dick Hollenbeck's avatar Dick Hollenbeck

compile base_screen.cpp separately for {pcbnew,cvpcb} and eeschema, so we can...

compile base_screen.cpp separately for {pcbnew,cvpcb} and eeschema, so we can diverge internal units at compile time, not runtime
parent 2b394c7c
...@@ -26,7 +26,6 @@ set(COMMON_ABOUT_DLG_SRCS ...@@ -26,7 +26,6 @@ set(COMMON_ABOUT_DLG_SRCS
set(COMMON_SRCS set(COMMON_SRCS
${COMMON_ABOUT_DLG_SRCS} ${COMMON_ABOUT_DLG_SRCS}
base_screen.cpp
base_struct.cpp base_struct.cpp
basicframe.cpp basicframe.cpp
bezier_curves.cpp bezier_curves.cpp
...@@ -81,6 +80,7 @@ set(COMMON_SRCS ...@@ -81,6 +80,7 @@ set(COMMON_SRCS
add_library(common ${COMMON_SRCS}) add_library(common ${COMMON_SRCS})
set(PCB_COMMON_SRCS set(PCB_COMMON_SRCS
base_screen.cpp
pcbcommon.cpp pcbcommon.cpp
footprint_info.cpp footprint_info.cpp
class_layer_box_selector.cpp class_layer_box_selector.cpp
......
...@@ -75,9 +75,10 @@ endif(APPLE) ...@@ -75,9 +75,10 @@ endif(APPLE)
# Create the cvpcb executable # Create the cvpcb executable
### ###
add_executable(cvpcb WIN32 MACOSX_BUNDLE add_executable(cvpcb WIN32 MACOSX_BUNDLE
${CVPCB_SRCS} ${CVPCB_SRCS}
${CVPCB_DIALOGS} ${CVPCB_DIALOGS}
${CVPCB_RESOURCES}) ${CVPCB_RESOURCES}
)
### ###
# Set properties for APPLE on cvpcb target # Set properties for APPLE on cvpcb target
...@@ -89,11 +90,18 @@ endif(APPLE) ...@@ -89,11 +90,18 @@ endif(APPLE)
### ###
# Link executable target cvpcb with correct libraries # Link executable target cvpcb with correct libraries
### ###
target_link_libraries(cvpcb 3d-viewer pcbcommon common polygon bitmaps kbool target_link_libraries(cvpcb
${OPENGL_LIBRARIES} 3d-viewer
${wxWidgets_LIBRARIES} pcbcommon
${GDI_PLUS_LIBRARIES} common
) polygon
bitmaps
kbool
${OPENGL_LIBRARIES}
${wxWidgets_LIBRARIES}
${GDI_PLUS_LIBRARIES}
)
### ###
# Add cvpcb as install target # Add cvpcb as install target
### ###
......
...@@ -158,6 +158,7 @@ set(EESCHEMA_SRCS ...@@ -158,6 +158,7 @@ set(EESCHEMA_SRCS
set(EESCHEMA_COMMON_SRCS set(EESCHEMA_COMMON_SRCS
../common/dialogs/dialog_page_settings.cpp ../common/dialogs/dialog_page_settings.cpp
../common/base_screen.cpp
) )
......
...@@ -66,9 +66,10 @@ if(APPLE) ...@@ -66,9 +66,10 @@ if(APPLE)
${CMAKE_CURRENT_SOURCE_DIR}/Info.plist) ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
endif(APPLE) endif(APPLE)
target_link_libraries( pcb_calculator common polygon bitmaps target_link_libraries( pcb_calculator
${wxWidgets_LIBRARIES} common polygon bitmaps
) ${wxWidgets_LIBRARIES}
)
install(TARGETS pcb_calculator install(TARGETS pcb_calculator
DESTINATION ${KICAD_BIN} DESTINATION ${KICAD_BIN}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment