mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-23 03:10:34 +05:00
private tcl include dir
This commit is contained in:
parent
8076407e08
commit
66078cb285
@ -265,12 +265,12 @@ if (USE_GUI)
|
|||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
|
|
||||||
target_compile_definitions(nggui PUBLIC -DTCL -DOPENGL -DUSE_TOGL_2 PRIVATE -DUSE_TCL_STUBS -DUSE_TK_STUBS)
|
target_compile_definitions(nggui PUBLIC -DTCL -DOPENGL -DUSE_TOGL_2 PRIVATE -DUSE_TCL_STUBS -DUSE_TK_STUBS)
|
||||||
target_include_directories(nggui PUBLIC ${TCL_INCLUDE_PATH} ${TK_INCLUDE_PATH})
|
target_include_directories(nggui PRIVATE ${TCL_INCLUDE_PATH} ${TK_INCLUDE_PATH})
|
||||||
if(NOT EXISTS ${TK_INCLUDE_PATH}/tkWin.h AND EXISTS ${TK_INCLUDE_PATH}/../win/tkWin.h)
|
if(NOT EXISTS ${TK_INCLUDE_PATH}/tkWin.h AND EXISTS ${TK_INCLUDE_PATH}/../win/tkWin.h)
|
||||||
target_include_directories(nggui PUBLIC ${TK_INCLUDE_PATH}/../win)
|
target_include_directories(nggui PRIVATE ${TK_INCLUDE_PATH}/../win)
|
||||||
endif()
|
endif()
|
||||||
if(NOT EXISTS ${TK_INCLUDE_PATH}/x11/Xlib.h AND EXISTS ${TK_INCLUDE_PATH}/../xlib/X11/Xlib.h)
|
if(NOT EXISTS ${TK_INCLUDE_PATH}/x11/Xlib.h AND EXISTS ${TK_INCLUDE_PATH}/../xlib/X11/Xlib.h)
|
||||||
target_include_directories(nggui PUBLIC ${TK_INCLUDE_PATH}/../xlib)
|
target_include_directories(nggui PRIVATE ${TK_INCLUDE_PATH}/../xlib)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(nggui PUBLIC nglib togl
|
target_link_libraries(nggui PUBLIC nglib togl
|
||||||
|
@ -24,6 +24,7 @@ if(USE_GUI)
|
|||||||
target_sources(netgen PRIVATE ../windows/netgen.rc)
|
target_sources(netgen PRIVATE ../windows/netgen.rc)
|
||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
target_link_libraries( netgen nglib nggui netgen_python ${TK_LIBRARY} ${TCL_LIBRARY})
|
target_link_libraries( netgen nglib nggui netgen_python ${TK_LIBRARY} ${TCL_LIBRARY})
|
||||||
|
target_include_directories(netgen PRIVATE ${TCL_INCLUDE_PATH} ${TK_INCLUDE_PATH})
|
||||||
install(TARGETS netgen ${NG_INSTALL_DIR})
|
install(TARGETS netgen ${NG_INSTALL_DIR})
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set_target_properties(netgen PROPERTIES OUTPUT_NAME netgen)
|
set_target_properties(netgen PROPERTIES OUTPUT_NAME netgen)
|
||||||
|
Loading…
Reference in New Issue
Block a user