Skip to content

Commit

Permalink
Merge pull request #265 from CueMol/renlib_0920
Browse files Browse the repository at this point in the history
remove install libs
  • Loading branch information
ishitani authored Oct 9, 2024
2 parents 59984f6 + 768ec39 commit 39054eb
Show file tree
Hide file tree
Showing 17 changed files with 64 additions and 57 deletions.
3 changes: 2 additions & 1 deletion src/gfx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ if (WIN32)
# add_definitions(-DGFX_EXPORTS=1)
target_compile_definitions(gfx PUBLIC GFX_EXPORTS=1)
else()
target_compile_options(gfx PUBLIC "-fPIC")
# target_compile_options(gfx PUBLIC "-fPIC")
set_property(TARGET gfx PROPERTY POSITION_INDEPENDENT_CODE ON)
endif()

target_sources(gfx
Expand Down
6 changes: 3 additions & 3 deletions src/libpng/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ else()
target_compile_options(qmpng PUBLIC "-fPIC")
endif()

install(TARGETS qmpng
FILE_SET HEADERS
)
# install(TARGETS qmpng
# FILE_SET HEADERS
# )
8 changes: 4 additions & 4 deletions src/modules/anim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ target_link_libraries(anim PRIVATE qlib gfx qsys molstr Boost::filesystem Boost:

MCWRAPGEN_SCR_WRAPPERS(anim)

install(TARGETS anim
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
# install(TARGETS anim
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
# )
11 changes: 6 additions & 5 deletions src/modules/importers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ add_library(importers STATIC ${IMPORTERS_SRCS} ${MCWG_HEADERS})
if (WIN32)
add_definitions(-DIMPORTERS_EXPORTS=1)
else()
target_compile_options(importers PUBLIC "-fPIC")
# target_compile_options(importers PUBLIC "-fPIC")
set_property(TARGET importers PROPERTY POSITION_INDEPENDENT_CODE ON)
endif()
target_link_libraries(importers PRIVATE qlib gfx qsys molstr molvis surface symm)

MCWRAPGEN_SCR_WRAPPERS(importers)

install(TARGETS importers
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
# install(TARGETS importers
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
# )
11 changes: 6 additions & 5 deletions src/modules/lwview/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ add_library(lwview STATIC ${LWVIEW_SRCS} ${MCWG_HEADERS})
if (WIN32)
add_definitions(-DLWVIEW_EXPORTS=1)
else()
target_compile_options(lwview PUBLIC "-fPIC")
# target_compile_options(lwview PUBLIC "-fPIC")
set_target_properties(lwview PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()

target_link_libraries(lwview PRIVATE qlib gfx qsys molstr render)

MCWRAPGEN_SCR_WRAPPERS(lwview)

install(TARGETS lwview
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
# install(TARGETS lwview
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
# )
8 changes: 4 additions & 4 deletions src/modules/mdtools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ target_link_libraries(mdtools PRIVATE qlib gfx qsys molstr)

MCWRAPGEN_SCR_WRAPPERS(mdtools)

install(TARGETS mdtools
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
# install(TARGETS mdtools
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
# )
8 changes: 4 additions & 4 deletions src/modules/molanl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ target_link_libraries(molanl PRIVATE qlib gfx qsys molstr)

MCWRAPGEN_SCR_WRAPPERS(molanl)

install(TARGETS molanl
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
# install(TARGETS molanl
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
# )
8 changes: 4 additions & 4 deletions src/modules/molstr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ target_link_libraries(molstr PRIVATE qlib gfx qsys Boost::filesystem Boost::thre

MCWRAPGEN_SCR_WRAPPERS(molstr)

install(TARGETS molstr
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
# install(TARGETS molstr
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
# )
8 changes: 4 additions & 4 deletions src/modules/molvis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ target_link_libraries(molvis PRIVATE qlib gfx qsys molstr Boost::filesystem Boos

MCWRAPGEN_SCR_WRAPPERS(molvis)

install(TARGETS molvis
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
# install(TARGETS molvis
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
# )

install(FILES ${GLSL_SHADER_FILES} DESTINATION data/shaders)
11 changes: 6 additions & 5 deletions src/modules/rendering/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ add_library(render STATIC ${RENDER_SRCS} ${MCWG_HEADERS})
if (WIN32)
add_definitions(-DRENDER_EXPORTS=1)
else()
target_compile_options(render PUBLIC "-fPIC")
# target_compile_options(render PUBLIC "-fPIC")
set_property(TARGET render PROPERTY POSITION_INDEPENDENT_CODE ON)
endif()

target_link_libraries(render PRIVATE qlib gfx qsys CGAL::CGAL qmpng qmzlib Boost::filesystem)

MCWRAPGEN_SCR_WRAPPERS(render)

install(TARGETS render
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
# install(TARGETS render
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
# )
8 changes: 4 additions & 4 deletions src/modules/surface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ target_link_libraries(surface PRIVATE qlib gfx qsys molstr CGAL::CGAL)

MCWRAPGEN_SCR_WRAPPERS(surface)

install(TARGETS surface
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
# install(TARGETS surface
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
# )
8 changes: 4 additions & 4 deletions src/modules/symm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ target_link_libraries(symm PRIVATE qlib gfx qsys molstr)

MCWRAPGEN_SCR_WRAPPERS(symm)

install(TARGETS symm
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
# install(TARGETS symm
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
# )
8 changes: 4 additions & 4 deletions src/modules/xtal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ target_link_libraries(xtal PRIVATE qlib gfx qsys molstr symm surface ${XTAL_LINK

MCWRAPGEN_SCR_WRAPPERS(xtal)

install(TARGETS xtal
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
# install(TARGETS xtal
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
# )

IF (GLSL_SHADER_FILES)
install(FILES ${GLSL_SHADER_FILES} DESTINATION data/shaders)
Expand Down
3 changes: 2 additions & 1 deletion src/qlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ add_library(qlib STATIC)
if (WIN32)
target_compile_definitions(qlib PUBLIC QLIB_EXPORTS=1)
else()
target_compile_options(qlib PUBLIC "-fPIC")
# target_compile_options(qlib PUBLIC "-fPIC")
set_property(TARGET qlib PROPERTY POSITION_INDEPENDENT_CODE ON)
endif()

target_sources(qlib
Expand Down
3 changes: 2 additions & 1 deletion src/qsys/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ if (WIN32)
# add_definitions(-DQSYS_EXPORTS=1)
target_compile_definitions(qsys PUBLIC QSYS_EXPORTS=1)
else()
target_compile_options(qsys PUBLIC "-fPIC")
# target_compile_options(qsys PUBLIC "-fPIC")
set_property(TARGET qsys PROPERTY POSITION_INDEPENDENT_CODE ON)
endif()

target_compile_definitions(qsys PUBLIC NO_SCRIPT=1)
Expand Down
3 changes: 2 additions & 1 deletion src/sysdep/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ target_include_directories(
if (WIN32)
target_compile_definitions(sysdep PUBLIC SYSDEP_EXPORTS=1)
else()
target_compile_options(sysdep PUBLIC "-fPIC")
# target_compile_options(sysdep PUBLIC "-fPIC")
set_property(TARGET sysdep PROPERTY POSITION_INDEPENDENT_CODE ON)
endif()

# message(STATUS "SYSDEP_LINK_LIBRARIES: ${SYSDEP_LINK_LIBRARIES}")
Expand Down
6 changes: 3 additions & 3 deletions src/zlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ else()
target_compile_options(qmzlib PUBLIC "-fPIC")
endif()

install(TARGETS qmzlib
FILE_SET HEADERS
)
# install(TARGETS qmzlib
# FILE_SET HEADERS
# )

0 comments on commit 39054eb

Please sign in to comment.